Python and Ruby are also very handy for these kinds of tasks.
People joke about regular expressions being another problem to solve, but they really are an elegant solution to handle a LARGE portion of text processing needs.
Noone is using `python -c` syntax for constructing one-liners and i think thats helping adoption of python. I have no idea why one-liners are seen as desirable when they're often hard to read and debug.
Whenever something didn't work (and it didn't, because perfectly interfacing with embedded hardware is tough), I had two options: spend literal hours on Google and Stack Overflow, or go stand outside their cubicle and hope they had time for me.
I'll take a verbose function with clearly-followable logic over an amazing one-liner with a maze of options and hacks any day.