7

Another question from a newbie linux scripter. I'm trying to batch mogrify all the files in a folder using this command

find -name "*.jpg" -exec mogrify -resize 320 -quality 75 {} \;

The command runs but nothing seems to happen.

Thanks in advance

Michael Farah
  • 325
  • 1
  • 7
  • 20

2 Answers2

7

Try

find -name "*.jpg" -print

to see what files match; this may help diagnose if the problem is with mogrify or with find.

Joel Spolsky
  • 33,372
  • 17
  • 89
  • 105
2

Sorry all but this was just user error. I was not in the correct folder when testing. The command actually does work.

Michael Farah
  • 325
  • 1
  • 7
  • 20
  • In that case, you should mark Joel's answer as correct, since that was the debugging that would identify your error. – ghoti Jun 22 '12 at 19:42