title: sed to replace multiple words but skip one
body: <p>I am using sed to find and replace words in a file that have matching words with </p>
  
  <pre><code>sed -i "s|word|words|g" file
  </code></pre>
  
  <p>I would like it to change the first, skip the second and change the third match</p>
  
  <pre><code>file
  
  var1=word
  var2=/tmp/word
  var3=word.txt
  
  file 
  
  var1=words
  var2=/tmp/word
  var3=words.txt
  </code></pre>
  
  <p>Is it possible to keep var2 as is?</p>