How do I list subdirectories?

John Wiersba John.Wiersba@medstat.com
Tue Aug 31 23:49:00 GMT 1999


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



More information about the Cygwin mailing list