This deletes the 1st 5 lines of a file:
sed 1,5d file.txt
This deletes the all lines of a file up until the line including the string "end_of_header" (inclusive):
sed 1,/end_of_header/d file.txt
In reply to Re: Seek and delete
by toolic
in thread Seek and delete
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |