From: mik3 on
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

> head -n $(( $(wc -l <file) - 10 )) file

nice...