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?


ls -F | grep /$
works.  I'm not sure why you used egrep or *\ in your version.  BTW, ls -F
won't catch directories which start with . (use -A) and it won't catch
symlinks to directories (use -L).

> -----Original Message-----
> From: Clark Sims [mailto:clarksimsgnu@my-Deja.com]
> Sent: Wednesday, August 25, 1999 8:13 AM
> To: cygwin@sourceware.cygnus.com
> Subject: How do I list subdirectories?
> 
> 
>  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?
> 
> Thanks in Advance,
> 
> Clark Sims
> 
> 
> --== Sent via Deja.com http://www.deja.com/ ==--
> Share what you know. Learn what you don't.
> 
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com
> 

--
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]