[WNYLUG-Users] bash/ls question

Joe josephj at main.nc.us
Thu Feb 4 11:56:35 EST 2010


Christopher Hawkins wrote:
> find ./ -type d
>
> like that?
>
> Chris
>
> ----- "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.
>>
>> Thanks.
>>
>> Joe
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at wnylug.org
>> http://wnylug.org/mailman/listinfo/users_wnylug.org
>>     
>
> _______________________________________________
> Users mailing list
> Users at wnylug.org
> http://wnylug.org/mailman/listinfo/users_wnylug.org
>
>   
Thanks. That works.

Joe



More information about the Users mailing list