title: How to move jpg images below specified size from one to another file by batch code?
body: <p>I need to move jpg images below specified sizes from one folder to another by wirting batch code. I found out the code below to move images below 300x300 size to the file named 'FileName' but it does not work. Could you please advise me if you have?</p>
  
  <pre><code>find -iname \*.jpg | while read img; do anytopnm "$img" | pamfile | perl -ane 'exit 1 if $F[3]&lt;300 || $F[5]&lt;300' || mv "$img" ./FileName; done
  </code></pre>
  
  <p>Regards</p>
  
  <p>Guvenc</p>