Bash: Difference between revisions
Jump to navigation
Jump to search
(9 intermediate revisions by the same user not shown) | |||
Line 29: | Line 29: | ||
* [[Handling Signals in bash]] | * [[Handling Signals in bash]] | ||
* [[bash Loops]] | * [[bash Loops]] | ||
* [[bash | * [[bash on Mac]] | ||
* [[bash Prompt|bash Prompt]] | * [[bash Prompt|bash Prompt]] | ||
* [[bash Time|bash Time]] | |||
=Built-In Commands= | =Built-In Commands= | ||
{| | {| | ||
| [[bash set|set]] || [[bash for|for]] || [[bash printf|printf]] || [[bash if|if]] || [[bash declare/typeset|declare]] || [[bash declare/typeset|typeset]] || [[bash type|type]] || [[bash read|read]] || [[bash shift|shift]] [[bash test|test]] || [[bash eval|eval]] || [[bash exec|exec]] || [[trap]] || [[shopt]] || [[bash source|source]] || [[bash history|history]] || [[bash fc|fc]] | | [[bash set|set]] || [[bash for|for]] || [[bash printf|printf]] || [[bash if|if]] || [[bash declare/typeset|declare]] || [[bash declare/typeset|typeset]] || [[bash type|type]] || [[bash read|read]] || [[bash shift|shift]] [[bash test|test]] || [[bash eval|eval]] || [[bash exec|exec]] || [[trap]] || [[shopt]] || [[bash source|source]] || [[bash history|history]] || [[bash fc|fc]] [[mapfile]] | ||
|} | |} | ||
Line 62: | Line 63: | ||
* [[Bash script that reports the number of threads of a Java process|Report the number of threads of a Java process]] | * [[Bash script that reports the number of threads of a Java process|Report the number of threads of a Java process]] | ||
* [[Bash script that generates a random MAC address|Generate a random MAC address]] | * [[Bash script that generates a random MAC address|Generate a random MAC address]] | ||
* [[Bash | * [[Bash Timeout Loops|Timeout Loops]] | ||
* [[Bash_read#Confirmation_to_Proceed|Interactively Read Input from stdin]] | * [[Bash_read#Confirmation_to_Proceed|Interactively Read Input from stdin]] | ||
* [[Bash_Parameters_and_Variables#Booleans|Recommended pattern for boolean values in scripts]] | * [[Bash_Parameters_and_Variables#Booleans|Recommended pattern for boolean values in scripts]] | ||
Line 70: | Line 71: | ||
* [[Bash String to Lower or Upper Case|String to Lower or Upper Case]] | * [[Bash String to Lower or Upper Case|String to Lower or Upper Case]] | ||
* [[Bash Self-Extracting Shell Script|Self-Extracting Shell Script]] | * [[Bash Self-Extracting Shell Script|Self-Extracting Shell Script]] | ||
* [[Bash | * [[Bash Return Multiple Values from a Function using an Associative Array|Return Multiple Values from a Function using an Associative Array]] |
Revision as of 19:52, 5 May 2021
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
Built-In Commands
set | for | printf | if | declare | typeset | type | read | shift test | eval | exec | trap | shopt | source | history | fc mapfile |
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
- 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