Bash read command. How to parse a command output in bash.