Bash Script Capture Command Output