This repo is intended to extend the shell and contain useful and readable functions that help developers to maintaine their scripts easier and neatly.
The following packages (which basically functions) are available.
- Console : provides formatted printing to the console
- Date : provides rich date functionality
- Import : provides improved import over source command
- Random : provides readable way of using randoms
- Files : provides tests against files in a neat way
The next container based packages are also available
- Aggregate : provides the aggregate or set functionality
- Map : provides functionality over the assosiative type
- Queue : provides the queue type functionality
- Stack : provides the implementation and functionality of a stack
And String as well
- String : provides string functionality with well-known methods
Github Wiki doc is available here: https://github.com/torokmark/utils.sh/wiki
It requires Bash 4.4 or higher.
Check out the repository and source the file which you want to use.
source 'queue.sh'
# I create a queue called fruits
queue create fruits
# put an element to queue
queue enqueue fruits apple
queue peek fruits
queue destroy fruits
For more information, take a look at the utils wiki page: wiki
- If you are intended to contribute the project, please take a look at shell script style guide
- Fork this repository
- Make your changes
- Send an RP