Differences between revisions 22 and 24 (spanning 2 versions)
Revision 22 as of 2019-08-19 19:43:19
Size: 995
Editor: nodiscc
Comment: add categories, add todo
Revision 24 as of 2019-08-19 21:19:50
Size: 1154
Editor: nodiscc
Comment: rm dead link
Deletions are marked like this. Additions are marked like this.
Line 7: Line 7:
[[Shell]] > Script
----
ShellScript is a [[Script]] written for the [[Shell]] (They are similar to *.bat or .cmd files in Windows).
A '''[[https://en.wikipedia.org/wiki/Shell_script|Shell script]]''' is a script written for the [[Shell]]. Operations performed by shell scripts include file manipulation, program execution, and printing text.
Line 11: Line 9:
The [[MIME]] type is application/x-shellscript A script is a text file, which ''may or may not'' have the file extension {{{.sh}}}. The first line of the file [[https://en.wikipedia.org/wiki/Shebang_(Unix)|(shebang)]] indicates which interpreter/shell should execute the rest of the script:
Line 13: Line 11:
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 17: Line 14:
Including this line, Debian knows this is a shell script (they don't need to finish with *.[[Sh|sh]]).
Line 20: Line 16:
The [[MIME]] type of shell scripts is {{{application/x-shellscript}}}

{{{.bat}}} or {{{.cmd}}} are basic equivalents on Windows.
Line 21: Line 21:
 * [[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

Translation(s): English - Italiano

(!) ?Discussion


A Shell script is a script written for the Shell. Operations performed by shell scripts include file manipulation, program execution, and printing text.

A script is a text file, which may or may not have the file extension .sh. The first line of the file (shebang) indicates which interpreter/shell should execute the rest of the script:

  • #!/bin/sh

The MIME type of shell scripts is application/x-shellscript

.bat or .cmd are basic equivalents on Windows.


CategoryCommandLineInterface | CategoryRedundant: merge with ShellCommands/other shell pages