2 Aug
2002
2 Aug
'02
11:31
I can be brain dead but isn't "ls -d" suppose to show the directories only. When I give "ls-d all" I get back is nothing
toganm@earth:~/projects/sfnet/suse/faq_sgml> ls -ld drwxr-xr-x 7 toganm users 784 Aug 2 12:31
toganm@earth:~/projects/sfnet/suse/faq_sgml> ls -d . [snip]
So why do I get nothing when I issue 'ls -d'
Dunno, but I've always used this for directory only listings: find * -maxdepth 0 -type d -exec ls -dal {} \; Or, just omit the '-maxdepth 0' to do a recursive listing. Cheers, -jrh