shell-scripts-on-mac
This is an old revision of the document!
Shell Scripts on Mac
Shell scripts on mac in a nutshell:
- Create a new shell script file with nano:
nano script.sh
- Enter the following code to signify it's a shell script and to run a command:
#!/bin/sh ls
- Make it executable with chmod:
chmod 777 script.sh
- Run it with the sh command:
sh script.sh
shell-scripts-on-mac.1700867061.txt.gz · Last modified: 2023/11/24 23:04 by Roman Sheydvasser