find the folder with space in name.

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

Dont use "find". The below should work.

ls -1 | egrep " "

This should do that magic !

find -iname "* *"

@editaguy
It wont work in the nested directory structure !! Haven't noticed that ?!