This is a set of useful bash utilities that I have curated over the years.
In order to use utilities.sh
you must source
the script at the beginning of your bash script.
Do this using the following code snippet:
source <(curl -s "https://raw.githubusercontent.com/dotbrains/utilities/master/utilities.sh")
- This assumes
curl
is installed on your system.
Note: Due to an issue pertaining to bash 3.2 on MacOS please use the following snippet instead:
source /dev/stdin <<<"$(curl -s "https://raw.githubusercontent.com/dotbrains/utilities/master/utilities.sh")"