📝 Edit page
➕ Add page
Scripting
Guide to shell scripting for
.sh
scripts mainly but also command-line use
Topics
Pages
- Arrays
- Associative arrays
- Braces
-
Check OS
Get the name of the current operating using the shell and use it in control flow
- Copy
- Date and time
- Docstring
-
Evaluation
Evaluating expressions in the shell
-
Execute
How to run shell scripts
- Exit status
- Functions
-
Input and output
How to handle input and output of data between shell commands in a chain
- Looping
-
Options
Set shell options in a script or at a global level to change how the shell behaves
- Overview
- Parameter expansion
- Parse custom options
- Quick reference
- Random
- Read user input
-
Replace
Find and replace text in a file, a variable or a string
- Script arguments
- Sequence
- Shebang
- Size
- Skip errors
- Strings
- Unset
- Variables
- While
- Working with shells