Differences between revisions 12 and 15 (spanning 3 versions)
Revision 12 as of 2008-02-05 08:50:25
Size: 691
Editor: PeMac
Comment:
Revision 15 as of 2008-02-05 19:43:29
Size: 613
Editor: FranklinPiat
Comment: some cleanup
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
## Auto-converted by kwiki2moinmoin v2005-10-07
["Shell"]>["Bash"]
["Shell"]
Line 4: Line 3:
ShellScript is a ["Script"] written for the ["Shell"] (["Bash"]). They are similar to *.bat files in Windows. ShellScript is a ["Script"] written for the ["Shell"] (They are similar to *.bat or .cmd files in Windows).
Line 8: Line 7:
They are text files which first line says the shell to use (bash). So the first line is They are text files which first line says the shell to use (like DebPkg:bash , DebPkg:dash, DebPkg:csh, DebPkg:tcsh). So the first line is
 {{{
Line 11: Line 10:

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

#This is a comment.

/bin/sh is its interpreter.
}}}
Including this line, Debian knows this is a shell script (they don't need to finish with *.[:Sh:sh]).
Line 19: Line 14:
Finally, see the ["Bash"] commands.
Line 22: Line 15:
* [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"]


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

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

They are text files which first line says the shell to use (like bash , dash, csh, tcsh). So the first line is

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