shell发现不在搜索结果中显示根目录

Bla*_*ise 3 linux bash shell

我有一个快速和令人难以解决的问题.我通过列出目录列表

find ~/me/ -maxdepth 1 -type d -not -name "test1" -and -not -name "test4"

$ find ~/me/ -maxdepth 1 -type d -not -name "test1" -and -not -name "test4"
/home/me/
/home/me/test2
/home/me/test3
Run Code Online (Sandbox Code Playgroud)

我想使用类似的东西:find ~/me/ -maxdepth 1 -type d -not -name "test1" -and -not -name "test4" | xargs rm -rf但是这个找到了我: / home/me root dir.

我正在寻找一种不在搜索结果中包含它的方法.任何提示?提前致谢.

ako*_*nov 7

-mindepth 1 不适合你?