This is an old revision of the document!
Command | What it does |
---|---|
or
#!/bin/sh | shebang |
VAR=var | set VAR to var |
$VAR | inserts var whereever $VAR is placed |
case - esac | inserts case |
if - fi | inserts fi |
Problem:
Running your script prompts interpreter error
Fix:
Open your script with vi and execute the following
:set fileformat=unix
Problem:
Running your script requires more rights
Fix:
Make your script runable by executing the following code
chmod +x [scriptname].sh
Discussion