title: Single sed command for multiple substitutions?
body: <p>I use <a href="http://en.wikipedia.org/wiki/Sed" rel="nofollow noreferrer">sed</a> to substitute text in files.
  I want to give sed a file which contains all the strings to be searched and replaced in a given file.</p>
  
  <p>It goes over .h and .cpp files. In each file it searches for file names which are included in it. If found, it substitutes for example "a.h" with "&lt;a.h&gt;" (without the quotes).</p>
  
  <p>The script is this:</p>
  
  <pre><code>For /F %%y in (all.txt) do 
     for /F %%x in (allFilesWithH.txt) do
         sed -i s/\"%%x\"/"\&lt;"%%x"\&gt;"/ %%y
  </code></pre>
  
  <ul>
  <li>all.txt - List of files to do the substitution in them</li>
  <li>allFilesWithH.txt - All the include names to be searched</li>
  </ul>
  
  <p>I don't want to run sed several times (as the number of files names in input.txt.) but I want to run a single sed command and pass it input.txt as input.</p>
  
  <p>How can I do it?</p>
  
  <p>P.S I run sed from VxWorks Development shell, so it doesn't have all the commands that the Linux version does.</p>