delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/02/15/15:32:36

X-Spam-Check-By: sourceware.org
Message-ID: <7ff9c2a10702151232h145c9167l3fc8cb8cf9544a93@mail.gmail.com>
Date: Thu, 15 Feb 2007 12:32:04 -0800
From: "Svend Sorensen" <ssorensen AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Windows' dir /s /b equivalent
In-Reply-To: <er2emu$vbm$4@sea.gmane.org>
MIME-Version: 1.0
References: <er2emu$vbm$4 AT sea DOT gmane DOT org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 2/15/07, Ignazio Di Napoli wrote:
>
> I'm newbie with Cygwin. Looking through ls option, I didn't find
> anything to list then names of all files in the directory and all
> subdirectories, like dir /b /s does. Since it can be very useful in bash
> scripts, there must be some way. Right now I've done a recursive
> function which scans the directory and then launches itself for
> subdirectories, but it could be much simpler if there was the "dir /b
> /s" command, so I can't think anybody implemented it...
> Can you help me please?

ls has a recursive flag for ls (-R), but the find command may be more
appropriate for scripting.

Svend

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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