title: How to recursivly use JpegTran (command line) to optimise all files in subdirs?
body: <p>i have Photos in multiple directories. I want to use jpegtran (command line tool) to recursivly go through each one, optimise it, and save it (overwrite it)</p>
  
  <p>if they are all in one folder i use this</p>
  
  <pre><code>for JPEG in *.jpg ; do jpegtran -optimize $JPEG &gt; $JPEG; done
  </code></pre>
  
  <p>but i can't get it working recursivly and overwriting the same file (rather than to a new filename)</p>
  
  <p>any tips?</p>