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).

No comments:

Post a Comment