Hi Gurus,
How to list directories that are non-empty and non-hidden
Thanks in advance
Hi Gurus,
How to list directories that are non-empty and non-hidden
Thanks in advance
gnu find
find . -type d ! -empty
If I need find out all current folder, which only include empty subfolders, but no any files.
such as:
./a/b/c (all subfolders, no files)
./a/x/b.txt (has on file)
So how to list the first folder ./a ?