Bash Script Command Output To Code