title: How to avoid 'are the same file' warning message when using cp in Linux?
body: <p>I'm trying to copy certain files from one directory to another. Using this command</p>
  
  <pre><code>find "$HOME" -name '*.txt' -type f -print0 | xargs -0 cp -t $HOME/newdir
  </code></pre>
  
  <p>I get an warning message saying</p>
  
  <blockquote>
    <p>cp: '/home/me/newdir/logfile.txt' and '/home/me/newdir/logfile.txt'
    are the same file</p>
  </blockquote>
  
  <p>How to avoid this warning message?</p>