我正在尝试使用GNU find来查找不包含其他目录的目录,但可能包含也可能不包含常规文件.
到目前为止,我最好的猜测是:
find dir -type d \( -not -exec ls -dA ';' \)
但这只是给我一长串"."
谢谢!
bash shell gnu find
bash ×1
find ×1
gnu ×1
shell ×1