rm all files of extension code example
Example 1: rm files with extension
find . -name "*.bak" -type f -delete
Example 2: remove all files with no extention rm
find . -type f ! -name "*.*" -delete
find . -name "*.bak" -type f -delete
find . -type f ! -name "*.*" -delete