I use the following command to shrink photos in a particular directory. The command works perfectly from the bash shell command line.
Code:
find . -iname '*.jpg' -exec convert {} -resize 50%x50% -quality 75 {} \;
... but once I throw this line a bash script, I get
Quote:
find: missing argument to `-exec'
|
I've written a few hundred bash scripts and have never encountered this problem. find seems to be extremely picky in its notation and has a few "quirks" that I haven't encountered with any other command.
Thanks for the help!