Just stumbled on this one recently, I forget where:
foo | awk '{ print $NF }'
That prints the last column. $NF = number of fields. I use it a lot like this: git status | grep deleted: | awk '{ print $NF }' | xargs foo
I actually just realized, though, that I don't understand why this works. It seems like it should be '{ print ${$NF} }' or something, and the command as-given should just print "3" or "6" or whatever. I'm not an awk expert, so I'd love to understand what's going on here.