X-Spam-Check-By: sourceware.org Message-ID: <7ff9c2a10702151232h145c9167l3fc8cb8cf9544a93@mail.gmail.com> Date: Thu, 15 Feb 2007 12:32:04 -0800 From: "Svend Sorensen" To: cygwin AT cygwin DOT com Subject: Re: Windows' dir /s /b equivalent In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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/