Shell Toolkit is a library of useful functions, variables, and definitions to be used in bash scripting.
Install 'shell-toolkit' and the library files into a location that can be sourced in your path.
./install.sh /usr/local/bin
Source the library into your script:
#!/usr/bin/env bash
source shell-toolkit
Library of useful functions, variables, and definitions for bash scripting.
These files/functions have accumulated over the years when used in a variety of personal projects and now merged into a single library for better re-use and distribution.
colors.sh provides a set of definitions are used to help with text output/display on the terminal. Requires tput to function
download.sh provides a set of functions for various network/internet related functions.
log.sh provides a set of functions for logging within shell scripts. Includes configuration to customize log messages, such as:
- Prefixed Labels
- Color formatting
- Enable/Disable based upon the log level
Supports the following log level definitions:
- Fatal
- Error
- Warning
- Notice
- Informational
- Debug