Useful Shell routines.
APACHE-2.0 License
Useful Shell routines.
Files in the functions
folder provide specific functionality.
shlib_ansi
-- Provides functionality for using ANSI color in screen output.shlib_random
-- Generates a pseudo-random number the best way it can. It is by no means sufficient for security or cyptrography applications.shlib_relToAbsPath
-- Converts a relative path into an absolute path fromFiles in the standalone
folder are useful as libraries, or as standalone
software if the executable bit is set.
sgrep
-- Grep a section from a file where records are separated by blank lines. Note: This doesn't (yet) work under macOS due to sed
limitations.test_runner
-- A unit test suite runner that will execute all *_test.sh
files in the current directory.versions
-- Provides reusable functions that determine actual names andwhich
-- A version of the which
command for OSes that don't include one by default.