[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: what happens to the rest of a file piped to head/tail?




charles@lunarmedia.net said:
> Is it possible to cat a file, and remove the top 20 lines?
> For example, 

cat file | perl -e 'while (<>) { print if (++$count>20); }'

Steve
-- 
steve@silug.org           | Linux Users of Central Illinois
(217)698-1694             | Meetings the 4th Tuesday of every month
Steven Pritchard          | http://www.luci.org/ for more info

--
To unsubscribe, send email to majordomo@luci.org with
"unsubscribe luci-discuss" in the body.