https://github.com/kward/shlib
Useful Shell routines.
https://github.com/kward/shlib
Last synced: about 1 month ago
JSON representation
Useful Shell routines.
- Host: GitHub
- URL: https://github.com/kward/shlib
- Owner: kward
- License: apache-2.0
- Created: 2017-09-14T21:14:46.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-08-18T09:18:58.000Z (almost 2 years ago)
- Last Synced: 2025-03-27T06:22:52.407Z (about 2 months ago)
- Language: Shell
- Size: 90.8 KB
- Stars: 22
- Watchers: 3
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# shlib
Useful Shell routines.
[](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.