elwayisgod
MIS
Hi,
I want to write a script that will be invoked at command line by:
searchdir.ksh /home/stoteve file1 file2 file3
Where I can type as many file arguments. Then the script will read the directory as argument $1 then loop through all the other arguments searching for the file. I would like the output to goto a file called find.file then I could cat it or something. Have not thought about that as I can't figure out how to write this script where it will pass the arguments into it. Does anyone have a script that does this, that I can leverage off of?
Thanks,
Sam
I want to write a script that will be invoked at command line by:
searchdir.ksh /home/stoteve file1 file2 file3
Where I can type as many file arguments. Then the script will read the directory as argument $1 then loop through all the other arguments searching for the file. I would like the output to goto a file called find.file then I could cat it or something. Have not thought about that as I can't figure out how to write this script where it will pass the arguments into it. Does anyone have a script that does this, that I can leverage off of?
Thanks,
Sam