[bash] How to assign the output of a Bash command to a variable?