Bash Scripting Library

The Bash Scripting Library (BSL) is a collection of useful Bash scripts and libraries you can use to improve your Bash scripts.

The scripts contain a number of useful tools:


Color output

BSL includes useful color variables to use in your script output:

Color output in Bash shell scripts using BSL

Check out the demo demos/ to view more advanced usage of the color and styling variables.

Output logging functions

If your script needs a way to output information to the screen you can use the bsl_log_* functions. They are designed to present information in a clear and informative manner:

Informative log output using BSL

Check the demo demos/ for more advanced usage and features.

Try-Catch functionality

BSL includes helper functions to add try-catch functionality to your code: