1. Bash Shell Function Library (BSFL) Released.

    Sun 31 May 2009

    The Bash Shell Function Library (BSFL) is a small Bash script that acts as a library for bash scripts. It provides a couple of functions that makes the lives of most people using shell scripts a bit easier.

    image

    The purpose of this library is to provide pre-build functions for actions that often need to be performed, focussing on error-checking and logging. In this example, a test-script is written that demonstrates the functions the library provides.

    The project can be found at this location.

    Tagged as : Uncategorized
    If you have any comments email me, see the About page for contact details.
  2. 'Tip of the Day for Every Linux or Unix User: Brace Expantion'

    Sat 02 May 2009

    Searching the web I discovered some really nice feature of the unix shell, which I didn't know about.

    Try this:

    touch foobar.conf

    Now try this:

    cp foobar.conf{,.bak}

    It is equivalent to:

    cp foobar.conf foobar.conf.bak

    This is also the easiest way to create sequences. Do not use 'seq' since you cannot rely on it being installed.

    bash-3.2$ echo {1..10}

    1 2 3 4 5 6 7 8 9 10

    Please visit this location for additional examples.

    Tagged as : Uncategorized
    If you have any comments email me, see the About page for contact details.

Page 105 / 115