This is an old revision of the document!
Assign Output of Shell Command To Variable
Check Exit Status
Store the return value and/or output of a command in a variable