[WNYLUG-Users] bash/ls question

Joe josephj at main.nc.us
Thu Feb 4 12:00:46 EST 2010


Rob Dege wrote:
> So is tree ;)
>
> # tree -d
>
> -Rob
>
> On Wed, Feb 3, 2010 at 11:37 AM, Joe Hoot <joehoot at gmail.com
> <mailto:joehoot at gmail.com>> wrote:
>
>     find is your friend :)
>
>     =====================
>     Joseph R. Hoot
>     Network Penguin
>     joe at networkpenguin.com <mailto:joe at networkpenguin.com>
>     GPG KEY:   7145F633
>     =====================
>
>     On Feb 3, 2010, at 11:24 AM, Christopher Hawkins wrote:
>
>     > find ./ -type d
>     >
>     > like that?
>     >
>     > Chris
>     >
>     > ----- "Joe" <josephj at main.nc.us <mailto:josephj at main.nc.us>> wrote:
>     >
>     >> How do I do a recursive list of a directory that shows only
>     >> subdirectories and *not* their contents?
>     >>
>     >> ls -d */
>     >>
>     >> shows all the directories at one level and
>     >>
>     >> ls -r
>     >>
>     >> shows everything recursively, but I don't see how to combine them.
>     >>
>     >> If necessary, I can pipe ls -r into a script and do it myself,
>     but I
>     >> hope there's an easier way.
>     >>
>     >> Thanks.
>     >>
>     >> Joe
>     >>
>     >>
>     >> _______________________________________________
>     >> Users mailing list
>     >> Users at wnylug.org <mailto:Users at wnylug.org>
>     >> http://wnylug.org/mailman/listinfo/users_wnylug.org
>     >
>     > _______________________________________________
>     > Users mailing list
>     > Users at wnylug.org <mailto:Users at wnylug.org>
>     > http://wnylug.org/mailman/listinfo/users_wnylug.org
>
>
>     _______________________________________________
>     Users mailing list
>     Users at wnylug.org <mailto:Users at wnylug.org>
>     http://wnylug.org/mailman/listinfo/users_wnylug.org
>
>
>
>
> -- 
> -Rob
>
> Hell hath no fury like a snowplow driver from Cheektowaga who gave
> up cable and Canadian beer so he could afford Bills season tickets.
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at wnylug.org
> http://wnylug.org/mailman/listinfo/users_wnylug.org
>   
That one's new to me.  It wasn't installed by default on my system.
It's really cool.  I'm going to read the man page to see what else it
can do.

Thanks.

Joe



More information about the Users mailing list