I invoke the script below by typing:
./findfile.ksh /user/home/stoteve myfile1 myfile 2 myfile3
I can have as many files to search for as I want. How do I modify the code to verify that the directory in argument $1 exists before continuing. Then if it does not exist a error message prints and the system aborts.
while [[ "$1" != "" ]]
OPTS="$OPTS -o -name '$1'"
eval "find $DIR $OPTS" 2>/dev/null