#!/bin/sh for x in $(find images/ -name "*.png"); do echo "Processing ${x}" optipng -o7 -quiet "${x}" done