I have folders and files looks likes this:
/thumbs/6b0/6b029aab9ca00329cd28fd792ecf90a.jpg /thumbs/6b0/6b029aab9ca00329cd28fd792ecf90a-s.jpg /thumbs/d11/d11e15a72e20e14c45bd2769d763126d.jpg /thumbs/d11/d11e15a72e20e14c45bd2769d763126d-s.jpg
And I want to apply following command to the files not have -s in their names in all sub directories in thumbs folder.
mogrify -resize 50% -quality 85 -strip filename.jpg
I have look around find and grep but couldn't figure out how can I do this.
Any help appreciated.