The Unix command line provides numerous ways to make our work easier.
Display the last word in every line of a file
This one is pretty easy if you know the meaning of $NF. I came across this many years ago when I was building scripts entirely in awk.
Read more at IT World.