Re: [iPAQ] Why doesn't the find command do anything useful?

From: Cameron McCormack <clm.a.t.csse.monash.edu.au>
Date: Sun Apr 21 2002 - 03:16:06 EDT

Hi Rich.

Rich Warren:
> cd /
> find -name *.html
>
> I should get a list of all html files on my Ipaq. But I don't. Giving a
> specific path does work (eg find /etc -name *.conf), but how do I do a search
> that starts in the root directory, and searches the entire ipaq?

Traditionally, find should always take a path before the predicates. So
if you want to specify searching from the current directory, you would
type

  cd /
  find . -name '*.html'

Of course, you can always skip the cd beforehand and just go

  find / -name '*.html'

Some versions of GNU find let you omit the directory, which implies the
current directory. Perhaps the version you have doesn't.

Cameron

-- 
Cameron McCormack
  // clm@csse.monash.edu.au
  // http://www.csse.monash.edu.au/~clm/
  // icq 26955922
Received on Sun Apr 21 07:16:13 2002

This archive was generated by hypermail 2.1.8 : Tue May 04 2004 - 09:44:46 EDT