Data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 7387c8f97b
commit cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions

View file

@ -0,0 +1,25 @@
{{language
|exec=interpreted
|tags=bash
|hopl id=568
}}The '''UNIX Shell''' is a component of terminal-based [[UNIX]]-derived systems which offers both a command-line interface for running system commands, as well as programming interface for intelligently automating tasks which use system commands.
=Implementation=
There are many UNIX Shells and most of them can be categorized into two families. For purposes of the Rosetta Code, all examples are in Bourne-compatible syntax. The other family of shells, with a markedly different syntax, are ''csh'' ([[:Category:C Shell|C Shell]]) and its ''tcsh'' (Tenex C Shell) "clone." Common Bourne compatible shells include the original [[Bourne Shell]] (''/bin/sh'' on most versions of UNIX), the GNU [[Bourne Again SHell]] (''bash'' --- which is linked to ''/bin/sh'' on many distributions of [[Linux]], making it their default shell), the [[Korn Shell]] (''ksh''), the [[Public Domain Korn SHell]] (''pdksh''), the [[Almquist SHell]] (''ash'') and the [[Debian Almquist SHell]] (''dash'') and the [[Z SHell]] (''zsh'').
''Main article: [[UNIX Shell Implementations]]''
=Language=
While UNIX Shells vary in the programming languages they support, such languages carry a minimum set of features. Each language allows the programmer to [[Execute a System Command|execute system commands]] as though he were typing the commands himself, and each language allows for a header line which specifies which shell implementation is used to interpret the script.
This one tells the operating system to use the [[Bourne Shell]]:
#!/bin/sh
This line tells the operating system to use the [[Bourne Again SHell]]:
#!/bin/bash
And this one tells the operating system to use the [[Korn Shell]]:
#!/bin/ksh
Each header line consists of a hash, a bang, and the path to the [[interpreter]] binary.

View file

@ -0,0 +1,2 @@
---
from: http://rosettacode.org/wiki/Category:UNIX_Shell

1
Lang/UNIX-Shell/100-doors Symbolic link
View file

@ -0,0 +1 @@
../../Task/100-doors/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/15-puzzle-game/UNIX-Shell

1
Lang/UNIX-Shell/21-game Symbolic link
View file

@ -0,0 +1 @@
../../Task/21-game/UNIX-Shell

1
Lang/UNIX-Shell/24-game Symbolic link
View file

@ -0,0 +1 @@
../../Task/24-game/UNIX-Shell

1
Lang/UNIX-Shell/A+B Symbolic link
View file

@ -0,0 +1 @@
../../Task/A+B/UNIX-Shell

1
Lang/UNIX-Shell/ABC-problem Symbolic link
View file

@ -0,0 +1 @@
../../Task/ABC-problem/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Accumulator-factory/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Ackermann-function/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Active-Directory-Search-for-a-user/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Align-columns/UNIX-Shell

1
Lang/UNIX-Shell/Anagrams Symbolic link
View file

@ -0,0 +1 @@
../../Task/Anagrams/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Anagrams-Deranged-anagrams/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Anonymous-recursion/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Append-a-record-to-the-end-of-a-text-file/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Apply-a-callback-to-an-array/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Arithmetic-Complex/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Arithmetic-Integer/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Arithmetic-geometric-mean/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Array-concatenation/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Array-length/UNIX-Shell

1
Lang/UNIX-Shell/Arrays Symbolic link
View file

@ -0,0 +1 @@
../../Task/Arrays/UNIX-Shell

1
Lang/UNIX-Shell/Assertions Symbolic link
View file

@ -0,0 +1 @@
../../Task/Assertions/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Associative-array-Creation/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Associative-array-Iteration/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Averages-Arithmetic-mean/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Averages-Mode/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Babbage-problem/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Balanced-brackets/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Base64-decode-data/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Binary-digits/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Binary-search/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Bitcoin-address-validation/UNIX-Shell

1
Lang/UNIX-Shell/Bitmap Symbolic link
View file

@ -0,0 +1 @@
../../Task/Bitmap/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Bitmap-Bresenhams-line-algorithm/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Bitmap-Midpoint-circle-algorithm/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Bitmap-Read-a-PPM-file/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Bitmap-Write-a-PPM-file/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Boolean-values/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Box-the-compass/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Bulls-and-cows/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/CSV-data-manipulation/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/CSV-to-HTML-translation/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Caesar-cipher/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Calculating-the-value-of-e/UNIX-Shell

1
Lang/UNIX-Shell/Calendar Symbolic link
View file

@ -0,0 +1 @@
../../Task/Calendar/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Calendar---for-REAL-programmers/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Call-a-function/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Canonicalize-CIDR/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Case-sensitivity-of-identifiers/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Character-codes/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Check-input-device-is-a-terminal/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Check-output-device-is-a-terminal/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Check-that-file-exists/UNIX-Shell

1
Lang/UNIX-Shell/Classes Symbolic link
View file

@ -0,0 +1 @@
../../Task/Classes/UNIX-Shell

1
Lang/UNIX-Shell/Collections Symbolic link
View file

@ -0,0 +1 @@
../../Task/Collections/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Colour-bars-Display/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Comma-quibbling/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Command-line-arguments/UNIX-Shell

1
Lang/UNIX-Shell/Comments Symbolic link
View file

@ -0,0 +1 @@
../../Task/Comments/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Compound-data-type/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Conditional-structures/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Conways-Game-of-Life/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Copy-a-string/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Count-in-octal/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Count-occurrences-of-a-substring/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Count-the-coins/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Create-a-file/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Create-a-file-on-magnetic-tape/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Create-an-HTML-table/UNIX-Shell

1
Lang/UNIX-Shell/DNS-query Symbolic link
View file

@ -0,0 +1 @@
../../Task/DNS-query/UNIX-Shell

1
Lang/UNIX-Shell/Date-format Symbolic link
View file

@ -0,0 +1 @@
../../Task/Date-format/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Date-manipulation/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Day-of-the-week/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Deal-cards-for-FreeCell/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Define-a-primitive-data-type/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Delete-a-file/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Department-numbers/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Determine-if-a-string-is-numeric/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Determine-if-only-one-instance-is-running/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Digital-root/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Dinesmans-multiple-dwelling-problem/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Dutch-national-flag-problem/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Dynamic-variable-names/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Elementary-cellular-automaton/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Empty-directory/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Empty-program/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Empty-string/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Enforced-immutability/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Environment-variables/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Ethiopian-multiplication/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Eulers-sum-of-powers-conjecture/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Evaluate-binomial-coefficients/UNIX-Shell

1
Lang/UNIX-Shell/Even-or-odd Symbolic link
View file

@ -0,0 +1 @@
../../Task/Even-or-odd/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Execute-Brain-/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Execute-a-system-command/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Extend-your-language/UNIX-Shell

1
Lang/UNIX-Shell/FTP Symbolic link
View file

@ -0,0 +1 @@
../../Task/FTP/UNIX-Shell

1
Lang/UNIX-Shell/Factorial Symbolic link
View file

@ -0,0 +1 @@
../../Task/Factorial/UNIX-Shell

Some files were not shown because too many files have changed in this diff Show more