title: awk system call
body: <p>I want to use awk and the <code>system()</code> function to move a couple of directories around.</p>
  
  <p>I have a file that I want to process with <code>awk</code> names <code>file.cfg</code> which is organized in the following way:</p>
  
  <pre><code>/path1 /path2 
  /some_path /some_other_path 
  and so on..
  </code></pre>
  
  <p>each first path is separated from the second path by a whitespace
  So here's how I did it:</p>
  
  <pre><code>awk '{system(mv -R $1" "$2)}' file.cfg
  </code></pre>
  
  <p>but it doesn't work and I get</p>
  
  <pre><code>sh: 0/home/my_user/path1: No such file or directory
  </code></pre>
  
  <p>But <code>file.cfg</code> looks like this:</p>
  
  <pre><code>/home/my_user/path1 /home/my_user/path2
  </code></pre>
  
  <p>and there is no 0 before <code>/home</code>. So what am I missing here?</p>