Differences between revisions 13 and 15 (spanning 2 versions)
Revision 13 as of 2008-02-05 08:53:26
Size: 659
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:
["Shell"]>["Bash"] ["Shell"] 
Line 3: 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 7: 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 10: 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 18: Line 14:
Finally, see the ["Bash"] commands.
Line 21: Line 15:
* [http://steve-parker.org/sh/sh.shtml Linux Shell Scripting Tutorial].
* [http://www.zazzybob.com/bin.html Shell Script Repository].

CategoryShell
 * [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]).