Bash-Lib is a library of common Bash shell routines used in projects based on the A-Bash-Template (BaT) project. This library is broken into two files:
general
- Routines created to:
- Check program dependencies
- Check file dependencies
- From a JSON configuration file, dynamically format and display a program banner, e.g.
- Routines created to:
|
| A bash template (BaT) to ease argument parsing and management
|
| Usage:
| bash_template.sh -a alpha -b bravo [-c charlie] -d delta
|
| -a, --alpha alpha (something descriptive)
| -b, --bravo bravo (something descriptive)
| -c, --charlie charlie (this is optional)
| -d, --delta delta (something descriptive)
|
args
- Routines created to:
- Parse a JSON file for program configuration details
- Scan command-line arguments for accuracy and completeness
- Routines created to:
For details on how the various routines of this library project are used, see the A-Bash-Template (BaT) project.
Note that this project is managed as a Git submodule project specifically to keep projects that use this library up-to-date without manual intervention.