From: Chris Gehlker Date: 2002-06-02T09:12:06+09:00 Subject: Re: Finding all applications On 6/1/02 11:33 AM, "nobu.nokada@softhome.net" wrote: > Hi, > > At Sun, 2 Jun 2002 03:08:12 +0900, > Sean Russell wrote: >>> find / -type d -name '*.app' >> >> Or, if you want to use Ruby: >> >> ruby -r find -e 'Find.find("/"){|f| puts f if f[/\.app$/]}' > > Or, > > ruby -r find -e 'Dir.glob("/**/*.app") {|f| puts f}' Thanks, Jim, Shawn and nobu for replying. All of your suggestions work. They are all so slow though. I guess when man find says "find recursively descends the directory tree for each file listed..." I'm supposed to take that literally. I was hoping that find would be smart enough to just search the catalog. -- The secret of life is honesty and fair dealing. If you can fake that, you've got it made. -Groucho Marx