find . ! -name '*gz' -type f
This searches recursively in the current folder for all files that do not contain ‘gz’ in its name.
find . ! -name '*gz' -type f
This searches recursively in the current folder for all files that do not contain ‘gz’ in its name.