1. A Good BASH Script Template

    Mon 09 February 2015
    By John Mark Schofield in Technology

    I start out all my BASH scripts with the following boilerplate:

    set -e
    set -o pipefail
    set -u

    Let's talk for a minute about why each one of those lines is a good idea.

    set -e: Exit immediately if a simple command exits with a non-zero status. If …

    Tagged as: Bash Programming
  2. Redirecting STDERR and STDOUT in BASH

    Fri 20 April 2012
    By John Mark Schofield in Technology

    One of my clients (a Mac-based computer consulting company here in Los Angeles) had a BASH script they wanted me to look at -- a couple of things weren't working the way the client thought they should be working.

    The client's issues are resolved, but I noticed something in the script …

    Tagged as: Bash Command Line

Page 1 / 1