A solaris server with SAMBA share folder. The PC users created many folders with space on it, I want to find them out, but not list its subfolders.
For example, I have below folders
Copy of ABC/efg/xy
sa/Test again/xyt
If I use command:
find . -type d |grep " "
I will list 6 folders, but I just want to list folders:
Copy of ABC
sa/Test again