Small but useful scripts to share among users.
To run a bash script, you need to have bash installed on your system. It should be already installed on Linux and macOS. You can check if you have bash installed by running the following command in your terminal:
$ bash --versionIn case it is not installed, on Linux install bash with the following command:
$ sudo apt-get install bashand on macOS:
$ brew install bashTo run a bash script, you need to make it executable by running the following command in your terminal:
$ chmod +x script.shThen, you can run the script by running the following command in your terminal:
$ ./script.shIn case you want to add the script to your PATH, you can run the following command in your terminal:
$ sudo cp script.sh /usr/local/bin/scriptThen, you can run the script by running the following command in your terminal:
$ scriptIt would run on macOS even if the shell is in zsh.