Hi: The shell expands the wildcard, the wildcard itself never gets passed to the application. This can be demonstrated by the following script: #!/bin/sh echo $1 $2 $3 $4 $5 Now, you can see here that it's important to read the correct number of parameters. Running this script will only output the first 5 matching files, so you need to be able to read in all the names. I don't know how you'd do this in a shell script, but it'd be easy in say C. Geoff.