From: mik3 on 22 Dec 2009 05:14 On Dec 22, 4:51 am, "bob123" <bob...(a)gmail.com> wrote: > Hi, > > How to remove the last 10 lines from stdin ? > > Thanks head -n $(( $(wc -l <file) - 10 )) file
From: bob123 on 22 Dec 2009 05:53
> head -n $(( $(wc -l <file) - 10 )) file nice... |