title: how to extract multiple patterns from a line with grep/sed/awk and merge them in output
body: <p>I have a line of the form</p>
  
  <pre><code>bla bla bla RequestId=ABCD1234EFGH bla bla bla bla ResponseId=IJKL5678MNOP bla bla bla
  </code></pre>
  
  <p>I need to get both the RequestId and the ResponseId from this line and output them with a seperator. For example, for this particular line it will be  </p>
  
  <p><code>ABCD1234EFGH|IJKL5678MNOP</code></p>
  
  <p>I can extract one of the values with <code>grep -oe "RequestId=[0-9|a-z|A-Z|-]*"</code> but how can i get both?</p>