5 # lists the files in this (the current) directory that have the same names
6 # as files in the directory passed as the first (and only) parameter.
9 if [ -z "$list_dir" ]; then
13 echo "This program requires a single parameter, which is a directory name."
14 echo "The files in the current directory will be listed to standard output"
15 echo "if a file in the user-specified directory exists with the same name."
20 if [ -f "$list_dir/$i" ]; then