Hi All,
No strictly on topic but can anyone think of a better way to print out
line x of a file in Shell Script. Best I have so far is (in pseudo code)

cat /tmp/file | head -$x | tail -$x+1

Anything better or a perl one liner?

Cheers

Rus
-- 
www: http://jvds.com   | Virtual Servers from just $15/mo
MSNM: [EMAIL PROTECTED] | Totally Customizable Technology
e: [EMAIL PROTECTED]       | FreeBSD & Linux
       10% donation to FreeBSD.org on each purchase


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to