[CentOS] delete directories with find and exclude other directories

Gordon Messmer gordon.messmer at gmail.com
Wed Feb 3 18:28:58 UTC 2016


On 02/03/2016 10:11 AM, m.roth at 5-cent.us wrote:
> find . -type d ! -name logs -prune

That will prune all of the directories whose name is not "logs", 
starting with "."

So... not terribly useful.



More information about the CentOS mailing list