Yeah, bash is just for simple scripts, not for real programs. perl is much nicer, especially if you need to deal with regexes and stuff, although lately I have been using mostly python to write these small scripts I would have otherwise written in perl/bash years ago. I prefer python over perl...