How can I recursively delete all files of a specific extension in the current directory?

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/wangbingfengf98/article/details/85250326

Use it with precaution. Run first:

find . -name "*.out" -type f

Use find:

find . -name "*.out" -type f -delete

 references:

1. https://askubuntu.com/questions/377438/how-can-i-recursively-delete-all-files-of-a-specific-extension-in-the-current-di

猜你喜欢

转载自blog.csdn.net/wangbingfengf98/article/details/85250326