Category:UNIX Shell: Difference between revisions
m (Categorizing the language category.) |
(Copied language page.) |
||
Line 1: | Line 1: | ||
[[Category:Solutions by Programming Language]] |
[[Category:Solutions by Programming Language]] |
||
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= |
|||
The UNIX Shell may be implemented by any of a wide variety of programs. Notable programs used as shells include the [[Bourne SHell]], the [[Korn SHell]], and the [[Bourne Again SHell]]. |
|||
=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 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. |
Revision as of 13:31, 6 February 2007
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
The UNIX Shell may be implemented by any of a wide variety of programs. Notable programs used as shells include the Bourne SHell, the Korn SHell, and the Bourne Again SHell.
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 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.
Subcategories
This category has the following 5 subcategories, out of 5 total.
@
- UNIX Shell User (161 P)
- Bash User (49 P)
- Korn Shell User (11 P)
Pages in category "UNIX Shell"
The following 154 pages are in this category, out of 354 total.
(previous page) (next page)N
P
- Palindrome dates
- Palindrome detection
- Pangram checker
- Parsing/RPN calculator algorithm
- Parsing/Shunting-yard algorithm
- Pascal's triangle
- Penney's game
- Perfect shuffle
- Permutations
- Phrase reversals
- Pick random element
- Play recorded sounds
- Population count
- Power set
- Pragmatic directives
- Primality by trial division
- Program name
- Program termination
- Pseudo-random numbers/Middle-square method
R
- Random number generator (device)
- Random number generator (included)
- Range expansion
- Range extraction
- Rate counter
- Read a configuration file
- Read a file line by line
- Read a specific line from a file
- Read entire file
- Real constants and functions
- Regular expressions
- Remove lines from a file
- Rename a file
- Rep-string
- Repeat a string
- Respond to an unknown method call
- Return multiple values
- Reverse a string
- Reverse the order of lines in a text file while preserving the contents of each line
- Reverse words in a string
- Rock-paper-scissors
- Roman numerals/Decode
- Roman numerals/Encode
- Rosetta Code/Count examples
- Rosetta Code/Run examples
- Rot-13
- RPG attributes generator
- Run-length encoding
- Runtime evaluation
- Runtime evaluation/In an environment
S
- Scope/Function names and labels
- Search a list
- Secure temporary file
- Self-describing numbers
- SHA-1
- Shell one-liner
- Short-circuit evaluation
- Show the epoch
- Sierpinski carpet
- Sieve of Eratosthenes
- Simple database
- Sleep
- Snake
- Sockets
- Sort an array of composite structures
- Sort an integer array
- Sorting algorithms/Pancake sort
- Sorting algorithms/Sleep sort
- Soundex
- Special characters
- Special variables
- Speech synthesis
- Square but not cube
- Stable marriage problem
- Stack
- Stream merge
- String case
- String comparison
- String concatenation
- String interpolation (included)
- String length
- Strip a set of characters from a string
- Strip comments from a string
- Subleq
- Substring
- Substring/Top and tail
- Sum and product of an array
- Sum multiples of 3 and 5
- Sum of squares
- Sum to 100
- Symmetric difference
- System time
T
- Take notes on the command line
- Temperature conversion
- Terminal control/Clear the screen
- Terminal control/Coloured text
- Terminal control/Cursor movement
- Terminal control/Cursor positioning
- Terminal control/Dimensions
- Terminal control/Hiding the cursor
- Terminal control/Inverse video
- Terminal control/Preserve screen
- Terminal control/Ringing the terminal bell
- Terminal control/Unicode output
- Test a function
- Text between
- The Name Game
- The Twelve Days of Christmas
- Tic-tac-toe
- Time a function
- Tokenize a string
- Topic variable
- Topological sort
- Towers of Hanoi
- Trabb Pardo–Knuth algorithm
- Tree traversal
- Truncate a file