title: find and copy all images in directory using terminal linux mint, trying to understand syntax
body: <p>OS Linux Mint</p>
  
  <p>Like the title says finally I would like to find and copy all images in a directory. </p>
  
  <p>I found:</p>
  
  <p><strong>find all jpg (or JPG) files in a directory and copy them into the folder /home/joachim/neu2:</strong></p>
  
  <pre><code>find . -iname \*.jpg -print0 | xargs -I{} -0 cp -v {} /home/joachim/neu2
  </code></pre>
  
  <p>and </p>
  
  <p><strong>find all image files in a direcotry:</strong></p>
  
  <pre><code>find . -name '*' -exec file {} \; | grep -o -P '^.+: \w+ image' 
  </code></pre>
  
  <p>My problem is first of all, I don't really understand the syntax. Could someone explain the code?  </p>
  
  <p>And secondly can someone connect the two codes for generating a code that does what I want ;)</p>
  
  <p>Greetings and thanks in advance!</p>