Differences between revisions 4 and 6 (spanning 2 versions)
Revision 4 as of 2004-12-10 17:12:47
Size: 400
Editor: anonymous
Comment:
Revision 6 as of 2004-12-10 17:14:06
Size: 459
Editor: anonymous
Comment:
Deletions are marked like this. Additions are marked like this.
Line 4: Line 4:
The MIME tipe is application/x-shellscript
Line 5: Line 7:

#!/bin/bash
{{{
 #!/bin/bash
}}}
Line 9: Line 12:

# This is a comment.
{{{
 #This is a comment.
}}}

ShellScript is a ["Script"] written for the ["Shell"] (["Bash"]). They are similar to *.bat files in Windows.

The MIME tipe is application/x-shellscript

They are text files which first line says the shell to use (bash). So the first line is

 #!/bin/bash

After this, you can include comments using # in the beginning of the line. For example:

 #This is a comment.

Finally, the bash commands.