if doing it sort of manually, wc -l to get a line count, then head (total - n) for the rest?
On 2015-03-04 12:36 PM, Kevin McGregor wrote:
Can someone help me out? I'm too tired to think straight.
Is there an easy/short way to get all BUT the last n lines of a text file/input? All I can think of is reversing the input line order and tail +n or something like that. FYI the input is not very big.
Kevin
Roundtable mailing list Roundtable@muug.mb.ca http://www.muug.mb.ca/mailman/listinfo/roundtable