how to delete all files that don't end with txt code example Example: remove all files with no extention rm find . -type f ! -name "*.*" -delete