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.

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.

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.

20 DISK 18 TERRABYTE NAS

Just for fun, I've build myself an 18 TB NAS based on Debian Linux, software RAID, 20 disks and a Norco 4020 case.

AD

Projects

Contact

Donate

If you find PPSS, WFS or LFS, usefull, consider a donation.

Categories

Archives