I both love and hate writing Bash. I love that it\'s so streamlined for operating on files and working with processes (I agree with this popular question that it\'s way
You might want to give ZSh a try, it has a lot of improvements to make your shell script more readable.
http://www.zsh.org