Thinking in bash

by Michael Ruggiero

Two of my last work projects have been 100% bash, and I’m starting to like it. At first it was like cutting my food with an exacto blade; not bad so much as awkward. But now I see bash’s limitations are it’s strengths. For certain problems, the unix tool set (and a few calls to “yum install”) is enough. There are no regular expressions, ok. So use sed, or awk, or a Perl one-liner. There are no modules or classes, and associative arrays are kind of useless. So use your brain. And you realize that problems are not language-bound so much as skill-bound (or endurance-bound).

And shUnit helped. A lot. Writing test-driven bash turned out to be more fun that I could have imagined. So all hail bash.