Possible Duplicate:
Storing output of command in shell variable
How can I put the result of jps | awk '$2~/Bootstrap/{print $1}'
into a variable so that I can use with other commands?
Possible Duplicate:
Storing output of command in shell variable
How can I put the result of jps | awk '$2~/Bootstrap/{print $1}'
into a variable so that I can use with other commands?
$(...)
process is called Command Substitution and is one of the Shell Expansions: ✦ brace expansion ✦ tilde expansion ✦ parameter and variable expansion ✦ command substitution ✦ arithmetic expansion ✦ word splitting ✦ filename expansion – Peter.O Dec 03 '11 at 06:06