title: How can I retrieve the first word of the output of a command in Bash?
body: <p>I have a command, for example: <code>echo &quot;word1 word2&quot;</code>. I want to put a pipe (<code>|</code>) and get &quot;word1&quot; from the command.</p>
  <pre><code>echo &quot;word1 word2&quot; | ....
  </code></pre>
  <p>What should I put after the pipe?</p>