utils.sh

:shell: Useful functions for shell. String, Map, Set, Stack, Date, Random and others

View the Project on GitHub torokmark/utils.sh

Shell Utils

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.

The next container based packages are also available

And String as well

How to install

Check out the repository and source the file which you want to use.

How 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

Contribute

  1. If you are intended to contribute the project, please take a look at shell script style guide
  2. Fork this repository
  3. Make your changes
  4. Send an RP