Image of the glider from the Game of Life by John Conway
Skip to content

{ Category Archives } Scripting

Screen Digraphs

Have you ever wanted to type that one character that just isn’t on your keyboard? You know, like the cent symbol, or the acute mark? There are plenty, and it sure makes it frustrating for that one character, yet you have know idea how to access it. You know your program can do it, yet [...]

Bash Meets Csh

So, continuing in my effort at work to convert many of the scripts that we have to Bash, I came across a problem: I am stuck at work using Csh. So, can I run this sourced file, which contains many Bash functions, in Csh? For example, here is a brief rundown of my code: 1234567891011121314151617181920#!/bin/bash [...]

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 a script that [...]

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 line. [...]

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 very difficult. So, thus [...]

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 is launched, a [...]