
Anthony B. answered 05/26/19
Seven years of professional use
Given some script file, call it myscript.sh. Run the command "source myscript.sh".
Anthony B. answered 05/26/19
Seven years of professional use
Given some script file, call it myscript.sh. Run the command "source myscript.sh".
Patrick B. answered 04/28/19
Math and computer tutor/teacher
You must have .sh extension on the file and set the executable permission using chmod
Then you run it by inputting its name at the command prompt.
If you want to run the script in its own shell then you just do > sh filename.sh
# change the perms.
chmod a+x script.bash
# execute
./script.bash
Get a free answer to a quick problem.
Most questions answered within 4 hours.
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.