title: sed: multiple patterns on the same output line
body: <p>I have this file ( <code>languages.txt</code> ), obtained with <code>sed</code> from other formatted files:</p>
  
  <pre><code>language   "Afar"
  territory  "Djibouti"
  language   "Afar"
  territory  "Eritrea"
  language   "Afar"
  territory  "Eritrea"
  language   "Afar"
  territory  "Ethiopia"
  ...
  </code></pre>
  
  <p>I want to get results like "language (territory)" in the same line:</p>
  
  <pre><code>Afar (Djbouti)
  Afar (Eritrea)
  Afar (Ethiopia)
  ...
  </code></pre>
  
  <p>I'm using this command, but not obtaining desired result:</p>
  
  <pre><code>sed -nE 's/^language|territory\s+\"(.+)\"$/\1 \2/p'
  </code></pre>