Bash operators

From Linuxintro
Revision as of 13:55, 30 March 2009 by imported>ThorstenStaerk (New page: = $() = The operator $() in the bash shell is replaced by the output of the command enclosed in the parentheses. Examples: rpm -ql $(rpm -qa) for i in $(seq 1 1 100); do echo $i; done)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

$()

The operator $() in the bash shell is replaced by the output of the command enclosed in the parentheses.

Examples:

rpm -ql $(rpm -qa)
for i in $(seq 1 1 100); do echo $i; done