Re: listing directories
2006-08-19, 03:11(-07), JyotiC:
> thanx for ur
> with find -type d
> it's recursively going inside the directory and giving all the
> subdirectories
> is there a way through with i get only top directories, not the sub-dir
[...]
find . \! -name . -prune -type d -print
Or with most shells:
printf '%s\n' */
With zsh:
print -rl -- *(/)
--
Stéphane
|