delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/07/06/12:53:41

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Date: Sat, 6 Jul 2002 12:53:21 -0400
From: Christopher Faylor <cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: ls -R doesn't work; V1.3.12 on Win2000
Message-ID: <20020706165321.GD30296@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <000901c22458$419aef30$9e00100a AT HTURLAPATI> <009401c224c3$087da5b0$0400a8c0 AT JIMGEORGE>
Mime-Version: 1.0
In-Reply-To: <009401c224c3$087da5b0$0400a8c0@JIMGEORGE>
User-Agent: Mutt/1.3.23.1i

On Sat, Jul 06, 2002 at 08:59:17AM +0100, Jim George wrote:
>it doesn't work in 1.3.11 either.
>
>You can always pipe it to grep (ls -laR | grep '.DOC' for example).

It "doesn't work" because it doesn't actually work that way.  It doesn't
work that way on any linux/unix system.  The -R option doesn't mean
"match the command line arguments throughout all directories".  It means
"If, when listing files, you hit a directory, recurse into it."

In other words, 'ls' is working as designed.  This is a common
misconception of the -R option.

cgf

>----- Original Message ----- 
>From: "Hari Turlapati" <hturlapati AT yahoo DOT co DOT in>
>To: <cygwin AT cygwin DOT com>
>Sent: Friday, July 05, 2002 8:14 PM
>Subject: ls -R doesn't work; V1.3.12 on Win2000
>
>
>> The command "ls -laR *.doc" (Recursive listing of *.doc or *.pdf or
>> *.rtf, in general files with specific extension) under a subdirectory to
>> /cygdrive/c/ doesn't work. Even "ls -laR *.*" doesn't work.
>> 
>> But "ls -laR *" lists all the files under the subdirectories.
>> 
>> I am using CygWin Release 1.3.12-1 on Win2000 OS. The command "uname -a"
>> on my machine prints out the following:
>> 
>> CYGWIN_NT-5.0 HariPC 1.3.12(0.54/3/2) 2002-07-03 16:42 i686 unknown
>> 
>> Thanks
>> 
>> Hari
>> 
>> 
>> 
>> _________________________________________________________
>> Do You Yahoo!?
>> Get your free @yahoo.com address at http://mail.yahoo.com
>> 
>> 
>> --
>> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>> Bug reporting:         http://cygwin.com/bugs.html
>> Documentation:         http://cygwin.com/docs.html
>> FAQ:                   http://cygwin.com/faq/
>> 
>
>
>--
>Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>Bug reporting:         http://cygwin.com/bugs.html
>Documentation:         http://cygwin.com/docs.html
>FAQ:                   http://cygwin.com/faq/

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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