URGENT!! few unix/scrpting/ksh qns

hey guys,
I have a few general qns, so I'd appreciate quick responses.

  1. How do u read a file line by line and display its contents using KSH?
  2. How to kill a process using only the name?
  3. How to create an empty file with 1MB memory size?
  4. How to append some content to an existing file using only sed command?

Please make it as simple and explanatory as possible. Thanx!!!

Dont duplicate your post:

you will get better responces by following the rules.

well, I'm a new user; so didn't know probz about duplicating... anywayz, this ain't any homework, i'm preparing for an interview, so just anticipating a few qns that I found online with really complex answers.. so I'd appreciate if someone could provide a simple solution to the qns plzzz..

No duplicate or cross-posting, please read the rules.

Thread closed.