You're viewing a comment by Jadu Saikia and its responses.

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

Comment Responses

anonymous Permalink
May 03, 2013, 14:42

Or pipe to tail -1

Reply To This Comment

(why do I need your e-mail?)

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

Type the word "browser": (just to make sure you're a human)

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