Archivos RM con extensión
find . -name "*.bak" -type f -delete
GutoTrosla
find . -name "*.bak" -type f -delete
# print all files recursively with exstension .bak
find . -name "*.bak" -type f
# add -delete command at the end to delete them
find . -name "*.bak" -type f -delete
find . -type f -name '*.o' -delete