title: About the usage of linux command "xargs"
body: <p>I have some file like </p>
  
  <pre><code>love.txt  
  loveyou.txt 
  </code></pre>
  
  <p>in directory <code>useful</code>; I want to copy this file to directory <code>/tmp</code>.</p>
  
  <p>I use this command:</p>
  
  <pre><code>find ./useful/ -name "love*" | xargs cp /tmp/
  </code></pre>
  
  <p>but is doesn't work, just says:</p>
  
  <pre><code>cp: target `./useful/loveyou.txt' is not a directory
  </code></pre>
  
  <p>when I use this command:</p>
  
  <pre><code> find ./useful/ -name "love*" | xargs -i cp {} /tmp/
  </code></pre>
  
  <p>it works fine,</p>
  
  <p>I want to know why the second works, and more about the usage of <code>-i cp {}</code>.</p>