title: how to match one word or another, within a single line, with sed
body: <p>For this command <code>xwininfo -id 0x8a00004 |grep "Absolute\|Width\|Height"</code> I have this output</p>
  
  <pre><code>Absolute upper-left X:  44
  Absolute upper-left Y:  53
  Width: 999
  Height: 698
  </code></pre>
  
  <p>by using a single sed command, I want it to become this:</p>
  
  <pre><code>nX=44
  nY=53
  nWidth=999
  nHeight=698
  </code></pre>
  
  <p>My current code is this:</p>
  
  <pre><code>xwininfo -id 0x8a00004 |grep "Absolute\|Width\|Height" |sed -r 's".*([XY]):[[:blank:]]*(.*)"n\1=\2"'
  </code></pre>
  
  <p>I am aware that to match words with sed, I need to use <code>\bWordToMatch\b</code> on the expression, but I cannot find a way to put it where <code>([XY])</code> is on my command...
  I am aware also that to match "one OR other" word, I need to use <code>\|</code>, that I cant guess either..</p>