Skip to content

kward/shlib

Repository files navigation

shlib

Useful Shell routines.

Travis CI

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.

About

Useful Shell routines.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages