1 2 3 4 5 6 7 8
#!/bin/sh if [ "$#" -eq 0 ] ; then printf >&2 'loc: Need a search term\n' exit 2 fi for pat ; do find . -name '*'"$pat"'*' done