4 Oct
2003
4 Oct
'03
20:19
* Thomas Jones (thomas.jones@linux-howtos.com) [031004 09:46]:
What is the correct syntax for sed to delete the last 10 lines of a file?
You would need to know to know how many records are in the input to do that with sed. E.g., sed -e '$-10,$d' won't work since $ is defined until the EOF. You'll have to use awk for that. -- -ckm