31
05
2010
I meant to blog about this ages ago! Better late than never I suppose…
Back in April (April 22nd to be precise) I handed in two copies of my 72 page document which outlines everything about my project. I wanted to blog about my dissertation while I was doing it, but the thought was always pushed back by other thoughts of actually doing the project. Read the rest of this entry »
Comments : No Comments »
Categories : Bash/Shell, OpenSolaris, Uni
19
05
2010
This is part of a series of posts which should aid anyone writing Bash scripts to make them more robust.
This post describes how you can use traps to help your code fail more gracefully. Read the rest of this entry »
Comments : No Comments »
Categories : Bash/Shell
19
05
2010
This is part of a series of posts which should aid anyone writing Bash scripts to make them more robust.
This post offers some advice on how to Bash script defensively. Read the rest of this entry »
Comments : No Comments »
Categories : Bash/Shell
18
05
2010
This is part of a series of posts which should aid anyone writing Bash scripts to make them more robust.
This post shows you how to use Bash’s built-in error checking. Read the rest of this entry »
Comments : No Comments »
Categories : Bash/Shell
18
05
2010
This is part of a series of posts which should aid anyone writing Bash scripts to make them more robust.
This post shows you how you can guard against unset variables. Read the rest of this entry »
Comments : No Comments »
Categories : Bash/Shell
31
03
2010
On the UNIX command line, the `which` command is great, it tells you where a command is in the system. However, if your system has two versions of the `ls` command, it will only tell you which `ls` command you are going to use when tap it in and press enter. To find all copies of any command, we need something Liam called `whence` (I inherited Liam’s bashrc file when working at Sun, and this little gem was right inside it). The .bashrc function for `whence` looks something like this: Read the rest of this entry »
Comments : No Comments »
Categories : Bash/Shell, Linux, Mac OS, OpenSolaris
30
03
2010
If you navigate your browser to here, you will find a most amazing thing: Tetris crafted out of a SED script with a bash wrapper. The page is in Russian, but Google or another translation site will tell you that the first few words read:
Wrote a small Tetris on sed’e: sedtris.sed and wrapper on Bashe sedtris.sh
Download both scripts to the same directory, on the command line do:
bash sedtris.sh
It’s actually very good!
Comments : No Comments »
Categories : Bash/Shell