rhnaeco
Technical User
- Aug 11, 2005
- 45
I'm sure this has been answered before but i can only find answers for removing blank lines.
I would like to remove $n number of lines from the end of a file and $n number of lines from the beginning of the same file.
i.e remove 5 lines from the beginning and 2 from the end of the file.
I don't mind an answer in SED either.
thanks in advance
rhnaeco
I would like to remove $n number of lines from the end of a file and $n number of lines from the beginning of the same file.
i.e remove 5 lines from the beginning and 2 from the end of the file.
I don't mind an answer in SED either.
thanks in advance
rhnaeco