18 July 2011

delete the first line of a file with sed -i '1 d' old.txt

from stackoverflow.com

to remove the last line:

sed -i '$ d' foo.txt

 

No comments:

Post a Comment

Pages