title: awk print overwrite strings
body: <p>I have a problem using awk in the terminal.
  I need to move many files in a group from the actual directory to another one and I have the list of the necessary files in a text file, as:</p>
  
  <p>filename.txt  </p>
  
  <pre><code>file1
  file2
  file3
  ...
  </code></pre>
  
  <p>I usually digit:</p>
  
  <pre><code>paste filename.txt | awk '{print "mv "$1" ../dir/"}' | sh
  </code></pre>
  
  <p>and it executes:</p>
  
  <pre><code>mv file1 ../dir/
  mv file2 ../dir/
  mv file3 ../dir/
  </code></pre>
  
  <p>It usually works, but now the command changes its behaviour and awk overwrites the last string <code>../dir/</code> on the first one, starting again the print command from the initial position, obtaining:</p>
  
  <pre><code>../dire1 ../dir/
  ../dire2 ../dir/
  ../dire3 ../dir/
  </code></pre>
  
  <p>and of course it cannot be executed.
  What's happened?
  How do I solve it?</p>