This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: How do I list subdirectories?


Clark Sims wrote:
>  In the FSF version of bash
> ls -F | egrep *\/
> listed all of the subdirectories of the current working
> directory.
> In the Cygwin version the same command produces no
> output.
> How do I list the subdirectories of the current working
> directory?

ls -lR
or if you only want the subdirs
ls -F |egrep \/

grep'ing for *\/ will search for files ending with '*/' 
which is hopefully none.

-- 
 Kim Poulsen, B.Sc.E.E, System Developer HW
 Ericsson Telebit A/S     Tel: + 45 86 28 81 76
 Fabriksvej 11            Fax: + 45 86 28 81 86
 DK-8260 Viby J           E-mail: info@tbit.dk
 Denmark                  URL: http://www.tbit.dk/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]