Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Optimization of find' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Optimization of find
Authored by: SeanAhern on Jul 30, '09 09:36:16AM
Rather than executing jhead for every image, why not leverage xargs and make the whole thing even faster:

find . -type f -name \*.jpg -print0 | xargs -0 jhead -ft

Or, if your JPGs are all in one flat directory, a single command will do the trick as well:

jhead -ft *.jpg

[ Reply to This | # ]