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@gmail.com>
To: cygwin@cygwin.com
Subject: Re: Windows' dir /s /b equivalent
In-Reply-To: <er2emu$vbm$4@sea.gmane.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <er2emu$vbm$4@sea.gmane.org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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/

