#!0

A site of life and geekery

Primary menu

Skip to primary content
Skip to secondary content
  • Home
  • About Ben

Category Archives: Bash/Shell

Dissertation is over…

Posted on May 31, 2010 by Ben Lavery — 2 Comments ↓

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 bash, CS394, Diss, Dissertation, LaTeX, OpenSolaris, VAES, zones | 2 Replies

Robust Bash Scripts – Part Four

Posted on May 19, 2010 by Ben Lavery — No Comments ↓

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 bash script, traps | Leave a reply

Robust Bash Scripts – Part Three

Posted on May 19, 2010 by Ben Lavery — No Comments ↓

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 bash script, defensive scripting, making directories, spaces in input | Leave a reply

Robust Bash Scripts – Part Two

Posted on May 18, 2010 by Ben Lavery — No Comments ↓

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 bash script, errexit, set -e | Leave a reply

Robust Bash Scripts – Part One

Posted on May 18, 2010 by Ben Lavery — No Comments ↓

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 bash script, nounset, set -u | Leave a reply

Whence and Whenceman

Posted on March 31, 2010 by Ben Lavery — No Comments ↓

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 bash, unix, whence, whenceman, which | Leave a reply

Bash and SED script to play…Tetris…?

Posted on March 30, 2010 by Ben Lavery — No Comments ↓

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 bash, command line, sed, tetris | Leave a reply

Categories

  • Android (1)
  • Apple (8)
  • Apps (3)
  • Bash/Shell (7)
  • beleg-iâ (8)
  • Gallery Script (1)
  • Games (1)
  • General (41)
  • Google (3)
  • Hardware (4)
  • Home Made Food & Drink (1)
  • Internet (13)
  • iOS (9)
  • iPad (7)
  • iPhone (6)
  • Java (3)
  • Linux (5)
  • Mac Hardware (6)
  • Mac OS (20)
  • Microsoft (2)
  • Mobile (1)
  • Musings (12)
  • Open Source (3)
  • OpenSolaris (19)
  • Oracle (3)
  • Perl (2)
  • Programming (1)
  • Rants (7)
  • Second Life (1)
  • Social Networking (1)
  • Sun (61)
  • Trains (3)
  • Uni (10)

Archives

  • October 2012 (1)
  • July 2012 (5)
  • June 2012 (1)
  • May 2012 (1)
  • March 2012 (1)
  • February 2012 (1)
  • December 2011 (2)
  • October 2011 (3)
  • September 2011 (2)
  • August 2011 (1)
  • July 2011 (2)
  • June 2011 (3)
  • May 2011 (3)
  • April 2011 (1)
  • March 2011 (3)
  • February 2011 (6)
  • January 2011 (1)
  • December 2010 (1)
  • November 2010 (3)
  • October 2010 (2)
  • September 2010 (3)
  • August 2010 (3)
  • July 2010 (3)
  • June 2010 (4)
  • May 2010 (8)
  • April 2010 (5)
  • March 2010 (5)
  • February 2010 (1)
  • January 2010 (3)
  • December 2009 (1)
  • November 2009 (2)
  • October 2009 (1)
  • August 2009 (1)
  • July 2009 (4)
  • June 2009 (7)
  • May 2009 (6)
  • April 2009 (7)
  • March 2009 (9)
  • February 2009 (4)
  • January 2009 (14)
  • December 2008 (6)
  • November 2008 (9)
  • October 2008 (6)
  • September 2008 (6)
  • August 2008 (5)
  • July 2008 (9)
  • June 2008 (2)
  • May 2008 (1)
  • April 2008 (1)
  • March 2008 (1)
  • February 2008 (6)
  • January 2008 (8)
  • December 2007 (1)
  • November 2007 (3)

Powered by Linode

Copyright © 2013 #!0 . All Rights Reserved.
Powered by WordPress | Theme: Catch Box