I have a korn shell script called ex6.ksh. I invoke it by typing
./ex6.ksh /home/stoteve/brio/essbase 0904.txt 0905.txt 0906.txt
I need the path argument passed in, which it does. Then I need it to find all the files I list after the first argument. When I run the below script it ony finds the last one. I made sure all the .txt files above exist in the directory I'm searching in. I'm not sure how to pass the list of file arguments into my while loop to make it work. Any help is appreciated.
#Script to look for many files in a specified directory
while (( $# > 0 ))
find $1 -name "$*" -print