ADDED grep exclusion for smidump text
REFACTORED code to include filenames in an array used in a for each loop