Re: ls and directories only
On Tue, Nov 18, 2003 at 10:04:16AM -0700, Monique Y. Herman wrote:
> On Tue, 18 Nov 2003 at 16:41 GMT, Tom penned:
> > On Tue, Nov 18, 2003 at 10:32:27AM -0600, Lynn W wrote:
> >> I know this must be a silly question, but I have tried looking at the
> >> man and the --help and could not find it:
> >>
> >> How does one use the ls command to display just the directories'
> >> names, and suppress those which are not directories? In MS-DOS, it
> >> was dir /ad
> >>
> >> Doing ls -ld * does not do it as it only displays the files in the
> >> current directory.
> >>
> >> Thanks! Lynn
> >>
> >
> > I use "find -type f" for that.
> >
> >
>
> I think you mean 'find . -type d' ?
Yeah, I realized it when I typed it. I do that so frequently in email
-- think one thing and type another. I'm so
left-handed/right-brained/visual/nonlinear thinker it's hopeless :-)
Reply to: