Change that
find command to
Code:
find "$CFXHOME/$line" -type f ! -name '*fixes*' >> "$FIXDIR"/efin_files.tmp
Now,
find will complain if the file doesn't exist, and filtering out names that contain "fixes" is done right there by
find, eliminating the need for
grep. I've also added quoting to protect against names containing spaces or characters special to the shell. That might not be a problem in this case, but it's just good practice.
The only thing that this will silently ignore would be a name that exists but fails the "-type f" test.