Perl is your friend. I wish I used it more often, since I'm really rusty now. I use a perl script at work that I wrote a couple years ago, but when I look at the code now I tell myself, "Damn, you used to be pretty smart."