Awk, sed, and Perl one-liners Here is a useful collection of one-liners in: Awk Sed Perl Via this interview.