Differences between revisions 13 and 14
Revision 13 as of 2008-02-05 08:53:26
Size: 659
Editor: PeMac
Comment:
Revision 14 as of 2008-02-05 09:08:01
Size: 764
Editor: PeMac
Comment:
Deletions are marked like this. Additions are marked like this.
Line 10: Line 10:

Including this line, Debian knows this is a shell script (they don't need to finish with *.["Sh"]).
Line 21: Line 23:
* [http://steve-parker.org/sh/sh.shtml Linux Shell Scripting Tutorial].
* [http://www.zazzybob.com/bin.html Shell Script Repository].
 * [http://steve-parker.org/sh/sh.shtml Linux Shell Scripting Tutorial].
 * [http://www.zazzybob.com/bin.html Shell Script Repository].

["Shell"]>["Bash"]


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

The ["MIME"] type is application/x-shellscript

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

#!/bin/bash

Including this line, Debian knows this is a shell script (they don't need to finish with *.["Sh"]).

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

#This is a comment.

/bin/sh is its interpreter.

Finally, see the ["Bash"] commands.

?CategoryShell