title: How to wrap words in single quotes using sed script?
body: <p>I am curious how can I do the following thing with sed: I need to wrap certain two words in single quotes in each line. For example, the following text:</p>
  
  <p>I did it like this:</p>
  
  <pre><code>cat file |sed "s/[^ ][^ ]*/'&amp;'/g"
  </code></pre>
  
  <p>result:</p>
  
  <pre><code>'the-first-word' '-firstPrameter' 'value' '-secondParameter' 'value' '-thirdParameter' 'value' '-fourthParameter' 'value'
  </code></pre>
  
  <p>But it is wrapping every word. </p>
  
  <p>It should be like this, skip the first word and wrap only parameter and value:</p>
  
  <pre><code>the-first-word '-firstPrameter value' '-secondParameter value' '-thirdParameter value' '-fourthParameter value'
  </code></pre>