You're replying to a comment by Jadu Saikia.

January 06, 2009, 09:48

Nice Peter, very useful. Thanks.

One more:
Printing last field of last line:

awk '{ f=$NF }; END{ print f }'  file

Which is very useful to print the latest updated file in my dir.

ls -lrt | awk '{ f=$NF }; END{ print f }'

// Jadu

Reply To This Comment

(why do I need your e-mail?)

(Your twitter name, if you have one. (I'm @pkrumins, btw.))

Type the first letter of your name: (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.