[bash] Assign output to variable in Bash