Delete a line using sed
Hi,
I have a shell script say clean.sh. Now I want to delete all lines in a file called test.lst which starts with the word "initrd". How can I use sed command in my scripp clean.sh to achieve it? THanks |
Code:
sed -i /^initrd/d test.lst |
Quote:
Thanks that worked!!! |
All times are GMT -5. The time now is 04:11 PM. |