Showing posts with label cat. Show all posts
Showing posts with label cat. Show all posts

Sunday, November 8, 2009

Reverse the lines in a pipe with
( cat -n | sort -nr | cut -f 2- )

I hear there's something called 'tac' to do this, but I don't have it on my Mac (and can't find it in ports).