title: Script to create individual zip files for each .txt file it finds and move them after
body: <p>I need a shell script that basically does this:</p>
  
  <ul>
  <li>Searches in a folder for all the txt files, and for each one it finds, creates a individual zip file with the same of the txt file it found + .zip.</li>
  <li>After that moves the created zip file to the txt file.</li>
  </ul>
  
  <p>Basically its a script to substitute a list of txt files for its zip equivalent but keeping the same name.</p>
  
  <p>I've have used find to find the files that I want to zip:</p>
  
  <pre><code>find . -name '.txt.' -print
  </code></pre>
  
  <p>The Results are:</p>
  
  <pre><code>./InstructionManager.txt.0
  ./InstructionManager.txt.1
  </code></pre>
  
  <p>Those are the files I want to zip individually (of course they will be a lot more), but don't know how to use them as arguments individually for make commans like:</p>
  
  <pre><code>zip ./InstructionManager.txt.0.zip ./InstructionManager.txt.0
  mv ./InstructionManager.txt.0.zip ./InstructionManager.txt.0
  zip ./InstructionManager.txt.1.zip ./InstructionManager.txt.1
  mv ./InstructionManager.txt.1.zip ./InstructionManager.txt.1
  </code></pre>
  
  <p>Any Ideas? And no, i don't want a zip with all the files :S
  Thanks</p>