Method One:
Find directory-name "*.ABC" | Xargs RM
command is a bit dangerous, you can do the first half to see if you want to delete the file, and then the entire execution
Method Two:
Find. -name ' *.exe '-type f-print-exec rm-rf {} \;
(1) "." Represents a recursive lookup starting from the current directory
(2) "-name ' *.exe '" to find all folders or files ending with an. exe by name
(3) "-type F" Lookup type is file
(4) "-print" output to find the file directory name
(5) The main thing is-exec, the-exec option is followed by a command to execute, indicating that the command will be executed by the find file or directory.
The EXEC option is followed by the command or script that you want to execute, followed by a pair of {}, a space and a \, and finally a semicolon
Linux commands (13) Delete files with the same suffix name under the specified folder