Dave2001
01-20-2003, 02:26 PM
Hi Guys !
Iam kinda stuck with a problem .
For a script i need to read the first line out of a file and after it has been read - delete the entry.
then i need to go through the file again and read the next entry - and delete it again - till the file is empty .
the file contains several PIDs which i then want the user to give the option to kill
thing is i need to know how to make grep stop after the first match and then delete the entry . I have read it might work with awk - but i dont know how ...
Thanx already !!
Iam kinda stuck with a problem .
For a script i need to read the first line out of a file and after it has been read - delete the entry.
then i need to go through the file again and read the next entry - and delete it again - till the file is empty .
the file contains several PIDs which i then want the user to give the option to kill
thing is i need to know how to make grep stop after the first match and then delete the entry . I have read it might work with awk - but i dont know how ...
Thanx already !!