Passing arguments, writing a help menu, and debugging can be burdensome. However, the getopts command, Heredoc, and the "set ...
It used to be one of the joys of writing embedded software was never having to deploy shell scripts. But now with platforms like the Raspberry Pi becoming very common, Linux shell scripts can be a big ...
It is easy to dismiss bash — the typical Linux shell program — as just a command prompt that allows scripting. Bash, however, is a full-blown programming language. I wouldn’t presume to tell you that ...
Here are steps you can take to ensure that your bash scripts work as intended and are easy to update. Committing routine and even rarely required tasks to scripts is almost always a big win because ...
Many bash scripts use arguments to control the commands that they will run and the information that will be provided to the people running them. This post examines a number of ways that you can verify ...
I've recently written about using bash arrays and bash regular expressions, so here's a more useful example of using them to test IP addresses for validity. To belabor the obvious: IP addresses are 32 ...
Last year, I wrote an article for Linux Journal titled "Building Your March Madness Bracket" My article was timely, arriving just in time for the "March Madness" college basketball series. You see, I ...