bash script to execute file code example
Example 1: how to make a .sh file executable
chmod u+x <fileName>.sh
Example 2: how to execute a bash script in terminal
$ chmod +x fileName
$ ./fileName
chmod u+x <fileName>.sh
$ chmod +x fileName
$ ./fileName