#! /bin/sh while true ; do case $1 in "") break; ;; *) target=`find . -iname "$1"` case $target in "") ;; *) rm $target ;; esac shift ;; esac done