Assigning the output of a command to a variable

The Solution to Assigning the output of a command to a variable is


You can use a $ sign like:

OUTPUT=$(expression)

~ Answered on 2013-12-19 18:01:35


Most Viewed Questions: