[bash] How to retrieve the first word of the output of a command in bash?