Sunday, February 12, 2012

New Bash Scripters (Bourne Shell)

When experimenting with BASH scripts, the most often forgotten, yet important steps:

make your script executable
sudo chmod a+x nameofyourshell.sh

label script at the beginning to inform everyone (including the computer) that your script is a bash script with the following on line 1:
#!/bin/sh

No comments:

Post a Comment