An open API service indexing awesome lists of open source software.

https://github.com/kward/shlib

Useful Shell routines.
https://github.com/kward/shlib

Last synced: about 1 month ago
JSON representation

Useful Shell routines.

Awesome Lists containing this project

README

        

# shlib

Useful Shell routines.

[![Travis CI](https://travis-ci.org/kward/shlib.png?branch=master)](https://travis-ci.org/kward/shlib)

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