Answers for "how to run .sh file in mac terminal"

5

run sh from terminal mac

chmod +x fileName
bash fileName
Posted by: Guest on April-25-2020
0

how to run a sh file in terminal

# if not already ran, run to change permisions executable.
chmod 755 foo.sh

# then to run the sh file
./foo.sh
Posted by: Guest on January-31-2022

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language