Delete multiple files in the same directory liunx

premise:

Because each user-generated project, both in the user folder, you are required to file under the same name as the project delete multiple users, so use this command

 

command:

find . -name 'abc%.txt'  -type  f  -print  -exec  rm -rf  {} \;

 

Description:

It indicates the current directory

-type f indicates the type of file

 

Reference links:

https://blog.csdn.net/xufengzhu/article/details/76981220

 

Guess you like

Origin www.cnblogs.com/amy720/p/11690380.html