same find command not working in bash script, quotes?
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:
Thanks for the help! |
Errr.. I figuired this out about 10 seconds after posting. Besides wasting disk space, perhaps this may be of some to others... for some reason I needed to escape the { and } when using the find command in the shell script... wierd. So this is what worked:
Code:
find . -iname '*.jpg' -exec convert \{\} -resize 50%x50% -quality 75 \{\} \; |
All times are GMT -5. The time now is 01:44 PM. |