shlib

Useful Shell routines.

APACHE-2.0 License

Stars
21

shlib

Useful Shell routines.

functions

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 from
    the root of the file system.

standalone

Files 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 and
    versions of installed shells and the OS.
  • which -- A version of the which command for OSes that don't include one by default.