Bash: Difference between revisions
Jump to navigation
Jump to search
(4 intermediate revisions by the same user not shown) | |||
Line 33: | Line 33: | ||
* [[bash Time|bash Time]] | * [[bash Time|bash Time]] | ||
* [[Calling Python from bash#Overview|Calling Python from bash]] | * [[Calling Python from bash#Overview|Calling Python from bash]] | ||
* [[Shebang#Overview|Shebang]] | |||
* [[shellcheck]] | |||
=Built-In Commands= | =Built-In Commands= | ||
Line 74: | Line 76: | ||
* [[Bash Self-Extracting Shell Script|Self-Extracting Shell Script]] | * [[Bash Self-Extracting Shell Script|Self-Extracting Shell Script]] | ||
* [[Bash Return Multiple Values from a Function using an Associative Array|Return Multiple Values from a Function using an Associative Array]] | * [[Bash Return Multiple Values from a Function using an Associative Array|Return Multiple Values from a Function using an Associative Array]] | ||
* [[Mktemp#Overview|Temporary files and directories in bash]] | |||
* [[Bash Handling Complex Commands as Strings#Overview|Handling Complex Commands as Strings]] | |||
* [[Numbers and Arithmetic in bash]] |
Latest revision as of 18:31, 7 August 2024
External
Installation
Subjects
- Concepts
- bash Command Line
- bash Parameters and Variables
- bash Patterns
- bash Built-In Variables
- Command Line Expansion
- Input/Output
- bash Configuration Files
- bash Expressions
- bash Arrays
- Numbers and Arithmetic in bash
- File Name Handling in bash
- bash Script Debugging
- Functions
- Command Substitution
- Process in Background
- Unit Testing for bash
- Handling Signals in bash
- bash Loops
- bash on Mac
- bash Prompt
- bash Time
- Calling Python from bash
- Shebang
- shellcheck
Built-In Commands
set | for | printf | if | declare | typeset | type | read | shift test | eval | exec | trap | shopt | source | history | fc mapfile dirs/pushd/popd |
Job-Control Builtins
fg | bg | jobs | kill | wait | disown | suspend |
More about builtins:
External Commands
tail |
bash Script Library
- Processing of Command Line Parameters that Include Spaces
- Standard Command Line Option Processing Pattern
- Common bash functions (bash.shlib)
- Common Gradle wrapper functions (gradle.shlib)
- Common Maven wrapper functions (maven.shlib)
- Report the number of threads of a Java process
- Generate a random MAC address
- Timeout Loops
- Interactively Read Input from stdin
- Recommended pattern for boolean values in scripts
- Listing files in a directory and testing whether specific files exist in directories
- Determine whether a Variable Contains Spaces
- Trim
- String to Lower or Upper Case
- Self-Extracting Shell Script
- Return Multiple Values from a Function using an Associative Array
- Temporary files and directories in bash
- Handling Complex Commands as Strings
- Numbers and Arithmetic in bash