I've written a ton of bash.
My rule for writing bash is to write as little bash as possible.
Anything with any sort of even mildly complex logic, use a modern scripting language - Ruby (my preference) or Python.
I've also written github.com/thewoolleyman/process_h... which makes dealing with subprocesses much nicer in Ruby.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.