bug-fileutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Recursive find in "ls" utility doesn't seem to always work...


From: Bob Proulx
Subject: Re: Recursive find in "ls" utility doesn't seem to always work...
Date: Sun, 19 Oct 2003 19:14:29 -0600
User-agent: Mutt/1.3.28i

Tim Schoenfelder wrote:
> I manned the "ls" utility and it recommended reporting this to the above 
> email address.

You found the right mailing list.

> My story:
> I was attempting to find all of the *.exe files in a win95 cdrom 
> (troubleshooting an install on an older PC) so I tried the following 
> command:
> 
> ls -aR *.exe

You were attempting to find files but you were using the wrong
command.  You should have been using 'find'.  The 'ls' command lists
directories and the 'find' command finds files.

  find . -name '*.exe'

This is actually an FAQ and so I will redirect you there.  Search for
"Why doesn't rm -r *.pattern recurse like it should?" and also "Why
don't the utilities have built in directory recursion?"

  http://www.gnu.org/software/coreutils/faq/coreutils-faq.html

If that does not answer your question then please post another note.

Bob




reply via email to

[Prev in Thread] Current Thread [Next in Thread]