Tag Info

New answers tagged

2

Try: for i in `find . -type f -name "*.png"` do optipng -o7 $i done Did not test it but it should work like that. If you need to test it then you might change the line optipng -o7 $i with echo $i to see if you get the correct file.


2

simply use find here: find (...your filters ...) -exec optipng -o7 '{}' + note that the + will try to use as many of find's results as argument to optipng as possible, which is fine as this program accepts multiple files as arguments. Note that + only works if it is the last argument to an -exec command. The alternative find (...filters...) -exec ...



Top 50 recent answers are included