Find a file of the specified type and delete the Problem description: find the file of the specified type in the current directory solution: (1) find command specific command: find. -maxdepth 1-name '. *. c' parameter description: maxdepth specifies the depth of the subdirectory to be searched. name indicates the file name to be searched. c type file, use '*. c '. Here, the matching of file names is not a regular expression, which indicates. all files at the end of c) Note: You can use the grep command to search here. Note: grep-E is similar to egrep. The search parameter is a regular expression '. *. c' indicates. any file ending with c (2) delete a file of the specified Type COMMAND: find. -maxdepth 1-name '*. c '-delete Note: After you use find to find a file of the specified type, use the-delete parameter to delete the file of the specified type found.