Differences between revisions 12 and 14 (spanning 2 versions)
Revision 12 as of 2008-02-05 08:50:25
Size: 691
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 1: Line 1:
## Auto-converted by kwiki2moinmoin v2005-10-07
Line 11: Line 10:

Including this line, Debian knows this is a shell script (they don't need to finish with *.["Sh"]).
Line 22: 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].

CategoryShell

["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