James Mardell

The Joy of Shell Scripting


One of the key reasons I adore Linux and other UNIX-like environments is the defacto presence of shell-scripting. It’s quite disturbing how much of the world is held together with BASH.

Take earlier today. I’m currently writing my thesis, and I wanted to look up a footnote I have used in the past. It contained the word pseudo, but I hadn’t a clue which document it would be in. One shell-script one-liner later, and I had my quote.

for file in `find /home/jpm04 -iname "*.tex"`; do echo $file; grep pseudo $file; echo; done