how to compile and run a sh file code example
Example 1: how to run shell script
chmod +x <fileName>
./fileName. # or use ->. bash fileName
Example 2: how to run shell script
bash yourfile.sh
chmod +x <fileName>
./fileName. # or use ->. bash fileName
bash yourfile.sh