delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/08/25/08:22:59

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: <37C3DF2B.2D75F0F@tbit.dk>
Date: Wed, 25 Aug 1999 14:18:51 +0200
From: Kim Poulsen <kpo AT tbit DOT dk>
Organization: Ericsson Telebit A/S
X-Mailer: Mozilla 4.61 [en] (Win98; I)
X-Accept-Language: en
MIME-Version: 1.0
CC: "cygwin AT sourceware DOT cygnus DOT com" <cygwin AT sourceware DOT cygnus DOT com>
Subject: Re: How do I list subdirectories?
References: <MNFJLMNGHBDCCAAA AT my-deja DOT com>

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 AT tbit DOT dk
 Denmark                  URL: http://www.tbit.dk/

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