#!/bin/zsh temp=`tempfile` for i in $@ do pngcrush -q $i $temp && cp $temp $i done rm $temp