Saving command's stdout to a variable:
var=$(command) var=`command`
Double-quote right-side expression to properly handle multilines & globs.