Programmers are lazy. Good system administrators are really lazy. (Why bother doing something more than once)?
Unfortunately, due to the fact that Bash doesn't particularly lend itself to reusable code, it doesn't enjoy the same wealth of shared code available that you find with Python or Perl.
"But what about the lazy sysadmin that needs to write a script, where Bash genuinely is the most appropriate option?", I hear you ask! Well, by providing functions for many common tasks, I'm hoping that blip will help fill some of the gaps for those situations.
Please see the man page
man blip.bash, blip.bash for full documentation or
/usr/share/doc/blip directory for code examples and other useful information.
On Ubuntu, you can install from my PPA ppa:nicolaw/blip by running the following commands:
sudo add-apt-repository ppa:nicolaw/blip sudo apt-get update sudo apt-get install blip
On Debian or other Debian-based distributions, you can download the DEB package from GitHub and install it manually with:
curl -o https://github.com/neechbear/blip/releases/download/path/to/blip_pkg.deb sudo dpkg -i blip_pkg.deb
sudo yum localinstall \ https://github.com/neechbear/blip/releases/download/path/to/blip_pkg.rpm
Write instructions for installation from GitHub or source tarball here.
get_user_input()- multi character user input without defaults.
https://github.com/akesterson/cmdarg - A pure bash library to make argument parsing far less troublesome.