node.js is great for all those perl-y 1 to 10 liners. It should be the shell.
#!/usr/bin/env node
My point is that Javascript + Node would make the basis for a nice bash replacement.