Skip to content

{ Category Archives } Scripting

Kosher Coding

Don’t ask. Basically, I was writing another Bash script (surprise!) at work, and came across something that is sitting uneasy with me. And the only reason I can think of, is it isn’t “Kosher”. Let me explain.
The Bash shell, as we all know, is case sensitive. What happens when I have [...]

Bash Loops and File Handling

So, working on one of the many Bash scripts at work, I needed one that handled file manipulation. Not only did it need to manipulate a file, I needed it to handle the manipulation in a loop, as the lines are all the same except for a number (like a primary key) on each [...]

A Couple Bash Goodies

Lately, I have been rewriting C-shell (csh) aliases to Bash scripts. Unfortunately, this is no easy task. Just about each alias uses conditional statements, variables and functions and range between 40-1000+ words. Each alias is also written on one line! As such, trying to decrypt the alias into something useful is [...]

Bash Scripting and Prompts

Bash. The superior Open Source shell. Every other shell comes last when it comes to features, speed and just sheer fun. Yet, there are a couple quirks that if you are not aware of, can get you caught in the crosshairs of frustration.
First, parent and child process releationships. When the shell [...]