Difference between pages "MediaWiki:Monobook.css" and "Bash operators"
From Linuxintro
(Difference between pages)
imported>ThorstenStaerk |
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) |
||
Line 1: | Line 1: | ||
− | + | = $() = | |
− | + | 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 | |
− |
Revision as of 13:55, 30 March 2009
$()
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