delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/01/31/10:47:10

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
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Fri, 31 Jan 2003 10:46:49 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Carlo Florendo <carlo AT astra DOT ph>
cc: fj_br_ AT web DOT de, <cygwin AT cygwin DOT com>
Subject: Re: Problems with find
In-Reply-To: <022f01c2c90a$4755b390$3300a8c0@nakagami>
Message-ID: <Pine.GSO.4.44.0301311041140.24195-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0

For the archives: No.  This is not going to do what the OP wants at all.
In fact, if there's more than one file named 1000.*, it won't even work
(find will produce a "find: paths must precede expression" error).  For
details, "info find" and "info bash".

To the OP: Is your 1000 directory a symbolic link, by any chance?  If it
is, try the "-follow" option.  For details, "info find".
	Igor

On Fri, 31 Jan 2003, Carlo Florendo wrote:

> find . -name 1000.*
>
> ----- Original Message -----
> From: <fj_br_ AT web DOT de>
> To: <cygwin AT cygwin DOT com>
> Sent: Friday, January 31, 2003 5:57 PM
> Subject: Problems with find
>
>
> Hi folks,
>
> I trie to search file with find an didn't find all the file which should be
> found
>
> I search for all file starting with 1000 an the file 1000.zip in the
> diretory 1000 is not found
> $ find . -name 1000\*
> ./1000.zip
> ./1000
>
> but when I ls the directory 1000 the file is listed
> $ ls 1000
> 1000.zip
>
> As you can see I use the find installed in /usr/bin
> $ which find
> /usr/bin/find
> $ type find
> find is hashed (/usr/bin/find)
>
>
> what is wrong? Is it a bug or my fault?
>
> Thanks for any help and hint
>
> Franz

-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
  -- /usr/games/fortune


--
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