Category Archives: Bash/Shell

Dissertation is over…

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 … Continue reading

Posted in Bash/Shell, OpenSolaris, Uni | Tagged , , , , , , , | Leave a comment

Robust Bash Scripts – Part Four

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.

Posted in Bash/Shell | Tagged , | Leave a comment

Robust Bash Scripts – Part Three

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.

Posted in Bash/Shell | Tagged , , , | Leave a comment

Robust Bash Scripts – Part Two

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.

Posted in Bash/Shell | Tagged , , | Leave a comment

Robust Bash Scripts – Part One

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.

Posted in Bash/Shell | Tagged , , | Leave a comment

Whence and Whenceman

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 … Continue reading

Posted in Bash/Shell, Linux, Mac OS, OpenSolaris | Tagged , , , , | Leave a comment

Bash and SED script to play…Tetris…?

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 … Continue reading

Posted in Bash/Shell | Tagged , , , | Leave a comment