[CentOS] delete directories with find and exclude other directories
m.roth at 5-cent.us
m.roth at 5-cent.us
Wed Feb 3 18:51:39 UTC 2016
Gordon Messmer wrote:
> 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.
Right, but a) I think I tried using prune 20 years ago... and b) I thought
the o/p wanted to not deal with any directory whose name was logs. leaving
off prune would get everything, which is perhaps a bit more useful.
mark
More information about the CentOS
mailing list