Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Date: Sat, 6 Jul 2002 12:53:21 -0400 From: Christopher Faylor 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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" >To: >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/