Bash: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(34 intermediate revisions by the same user not shown)
Line 11: Line 11:


* [[bash Concepts|Concepts]]
* [[bash Concepts|Concepts]]
* [[bash Variables]]
* [[bash Command Line]]
* [[bash Parameters and Variables]]
* [[bash Patterns]]
* [[bash Built-In Variables]]
* [[bash Built-In Variables]]
* [[bash Command Line Expansion|Command Line Expansion]]
* [[bash Command Line Expansion|Command Line Expansion]]
Line 26: Line 28:
* [[bash Unit Testing|Unit Testing for bash]]
* [[bash Unit Testing|Unit Testing for bash]]
* [[Handling Signals in bash]]
* [[Handling Signals in bash]]
* [[bash Loops]]
* [[bash on Mac]]
* [[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 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]]
|}
 
==Job-Control Builtins==
 
{|
| [[bash fg|fg]] || [[bash bg|bg]] || [[bash jobs|jobs]] || [[kill]] || [[wait]] || [[bash disown|disown]] || [[bash suspend|suspend]]
|-
|-
| [[bash bg|bg]] || [[bash fg|fg]] || [[bash jobs|jobs]]  || [[bash exec|exec]]
|}
|}
More about builtins: {{Internal|Bash_Concepts#Builtin|Builtins}}


=External Commands=
=External Commands=
Line 50: 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 Repeat a Command Until it Succeeds or a Timeout Occurs|Repeat a Command Until it Succeeds or a Timeout Occurs]]
* [[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_Variables#Booleans|Recommended pattern for boolean values in scripts]]
* [[Bash_Parameters_and_Variables#Booleans|Recommended pattern for boolean values in scripts]]
* [[Bash Listing Files in a Directory|Listing files in a directory]]
* [[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]]

Revision as of 19:52, 5 May 2021

External

Installation

bash Installation

Subjects

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:

Builtins

External Commands

tail

bash Script Library