[WNYLUG-Users] bash/ls question
joehoot at gmail.com
Wed Feb 3 11:37:20 EST 2010
find is your friend :)
Joseph R. Hoot
joe at networkpenguin.com
GPG KEY: 7145F633
On Feb 3, 2010, at 11:24 AM, Christopher Hawkins wrote:
> find ./ -type d
> like that?
> ----- "Joe" <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.
>> Users mailing list
>> Users at wnylug.org
> Users mailing list
> Users at wnylug.org
More information about the Users