sed how to delete first 17 lines and last 8 lines in a file
head
and tail
are better for the job than sed
or awk
.
tail -n+18 file | head -n-8 > newfile
head
and tail
are better for the job than sed
or awk
.
tail -n+18 file | head -n-8 > newfile