[RndTbl] Easy script question?

Tim Lavoie tim at fractaldragon.net
Wed Mar 4 14:42:01 CST 2015


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 at muug.mb.ca
> http://www.muug.mb.ca/mailman/listinfo/roundtable

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.muug.mb.ca/pipermail/roundtable/attachments/20150304/f2a41acb/attachment.html>


More information about the Roundtable mailing list