How to retrieve the first word of the output of a command in bash?
- by Neuquino
I have a command, for example: echo "word1 word2". I want to put a pipe (|) and get word1 from the command.
echo "word1 word2" | ....
I don't know what to put after the pipe...
Thanks in advance