I use Perl for stuff like that. *dork*