#!/opt/bin/bash if [ "$1" = "" -o "$2" = "" ] then self=`basename $0 .sh` echo echo "Error: not enough arguments given!" echo echo "Syntax: $self \"\" {}+" echo echo "This utility searches the given directory (or directories)" echo "and all its (their) subdirectories for files whose names" echo "match the given." echo echo "Note that the double quotation marks (\" ... \")" echo "are essential if the '*' wildcard operator is used." echo echo "sd&m sb 95" echo else pattern="$1" shift for directory in "$@" do find $directory -name "$pattern" -print done fi