My favorite thing has been `| ruby -e "puts STDIN.to_a. ..."`, allows to run any kind of code on the standard input, much easier than remembering awk/sed various options and much more powerful.
edit: same thing can be done with Python/Perl
edit: same thing can be done with Python/Perl