delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/08/25/11:14:03

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>,
<http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <03F4742D8225D21191EF00805FE62B990205E29E@AA-MSG-01>
From: John Wiersba <John DOT Wiersba AT medstat DOT com>
To: "' Clark Sims '" <clarksimsgnu AT my-Deja DOT com>, cygwin AT sourceware DOT cygnus DOT com
Subject: RE: How do I list subdirectories?
Date: Wed, 25 Aug 1999 11:05:32 -0400
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)

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 AT my-Deja DOT com]
> Sent: Wednesday, August 25, 1999 8:13 AM
> To: cygwin AT sourceware DOT cygnus DOT 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 AT sourceware DOT cygnus DOT com
> 

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019