Skip to content

library of common bash routines used in a-bash-template (BaT) project

License

Notifications You must be signed in to change notification settings

richbl/bash-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Bash-Lib

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.
|
| 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

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.