title: bash script to create and print string into files from list
body: <p>I'm on opensus 11.3 and I am looking for a bash script to do the following:</p>
  
  <ol>
  <li><p>Create directories and rename them from a <code>.txt</code> list, each new name is a new line on that .txt</p></li>
  <li><p>Copy <code>file.php</code> from to each new directory, and rename all <code>file.php</code> files in those directories to a specific name. </p></li>
  <li><p>Print a <code>"/&lt; php ?  &gt;/"</code> string into the first line in each of those files.</p></li>
  </ol>
  
  <p>I assume the best and fastest to accomplish this will be in bash, if you have another idea I will be happy to listen.</p>