title: Extract fields from logs with awk and aggregate them for a new command
body: <p>I have this kind of log:</p>
  
  <pre><code>2018-10-05 09:12:38 286 &lt;190&gt;1 2018-10-05T09:12:38.474640+00:00 app web - - Class uuid=uuid-number-one cp=xxx action='xxxx'
  2018-10-05 10:11:23 286 &lt;190&gt;1 2018-10-05T10:11:23.474640+00:00 app web - - Class uuid=uuid-number-two cp=xxx action='xxxx'
  </code></pre>
  
  <p>I need to extract <code>uuid</code> and run a second query with:</p>
  
  <p><code>./getlogs --search 'uuid-number-one OR uuid-number-two'</code></p>
  
  <p>For the moment for the first query I do this to extract <code>uuid</code>:</p>
  
  <p><code>./getlogs | grep 'uuid' | awk 'BEGIN {FS="="} { print $2 }' | cut -d' ' -f1</code></p>
  
  <p>My three question :</p>
  
  <ul>
  <li>I think I could get rid of <code>grep</code> and <code>cut</code> and use only <code>awk</code>?</li>
  <li>How could I capture only the value of <code>uuid</code>. I tried <code>awk '/uuid=\S*/{ print $1 }'</code>  or <code>awk 'BEGIN {FS="uuid=\\S*"} { print $1 }'</code> but it's a failure.</li>
  <li>How could I aggregate the result and turn it into one shell variable that I can use after for the new command?</li>
  </ul>