Bash: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
 
(79 intermediate revisions by the same user not shown)
Line 1: Line 1:
=External=
* https://www.gnu.org/software/bash/manual/bashref.html
* [[File:Bash 4.4 Reference Manual.pdf|Bash 4.4 Reference Manual]]
=Installation=
{{Internal|bash Installation|bash Installation}}
=Subjects=
=Subjects=


* [[bash Concepts|Concepts]]
* [[bash Concepts|Concepts]]
* [[bash Command Line]]
* [[bash Parameters and Variables]]
* [[bash Patterns]]
* [[bash Built-In Variables]]
* [[bash Command Line Expansion|Command Line Expansion]]
* [[bash Input/Output|Input/Output]]
* [[bash Input/Output|Input/Output]]
* [[bash Variables]]
* [[bash Configuration Files]]
* [[bash Environment Variables]]
* [[bash Expressions]]
* [[bash Expressions]]
* [[bash Arrays]]
* [[Numbers and Arithmetic in bash]]
* [[Numbers and Arithmetic in bash]]
* [[File Name Handling in bash]]
* [[bash Script Debugging]]
* [[bash Script Debugging]]
* [[bash Functions|Functions]]
* [[bash Functions|Functions]]
* [[Bash Command Substitution|Command Substitution]]
* [[Bash Command Substitution|Command Substitution]]
* [[Bash Process in Background|Process in Background]]
* [[bash Unit Testing|Unit Testing for bash]]
* [[Handling Signals in bash]]
* [[bash Loops]]
* [[bash on Mac]]
* [[bash Prompt|bash Prompt]]
* [[bash Time|bash Time]]
* [[Calling Python from bash#Overview|Calling Python from bash]]
* [[Shebang#Overview|Shebang]]
* [[shellcheck]]


=Built-In Commands=
=Built-In Commands=
{{External|https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#Bash-Builtins}}
{|
| [[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]] [[bash Directory Manipulation Built-in Commands|dirs/pushd/popd]]
|}
==Job-Control Builtins==


{|
{|
| [[bash set|set]] || [[bash for|for]] || [[bash printf|printf]] || [[bash if|if]] || [[bash declare|bash declare/typeset]] || [[bash typeset|bash declare/typeset]] || [[bash type|type]]
| [[bash fg|fg]] || [[bash bg|bg]] || [[bash jobs|jobs]] || [[kill]] || [[wait]] || [[bash disown|disown]] || [[bash suspend|suspend]]
|-
|}
 
More about builtins: {{Internal|Bash_Concepts#Builtin|Builtins}}
 
=External Commands=
 
{|
| [[tail]]  
|}
|}


=bash Script Library=
=bash Script Library=


* [[Bash Processing of Command Line Parameters that Include Spaces|Processing of Command Line Parameters that Include Spaces]]
* [[Bash Standard Command Line Option Processing Pattern|Standard Command Line Option Processing Pattern]]
* [https://github.com/ovidiuf/shell-tools/blob/master/lib/bash.shlib Common bash functions (bash.shlib)]
* [https://github.com/ovidiuf/templates/blob/master/gradle.shlib Common Gradle wrapper functions (gradle.shlib)]
* [https://github.com/ovidiuf/templates/blob/master/maven.shlib Common Maven wrapper functions (maven.shlib)]
* [[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 Timeout Loops|Timeout Loops]]
* [[Bash_read#Confirmation_to_Proceed|Interactively Read Input from stdin]]
* [[Bash_Parameters_and_Variables#Booleans|Recommended pattern for boolean values in scripts]]
* [[Bash Listing Files in a Directory and Testing whether Specific Files Exist in Directories|Listing files in a directory and testing whether specific files exist in directories]]
* [[Bash Determine whether a Variable Contains Spaces|Determine whether a Variable Contains Spaces]]
* [[Bash Trim|Trim]]
* [[Bash String to Lower or Upper Case|String to Lower or Upper Case]]
* [[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]]
* [[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

bash Installation

Subjects

Built-In Commands

https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#Bash-Builtins
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:

Builtins

External Commands

tail

bash Script Library