delorie.com/archives/browse.cgi | search |
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 |
Reply-To: | <ian DOT chesal AT utoronto DOT ca> |
From: | "Ian R. Chesal" <ian DOT chesal AT rogers DOT com> |
To: | <fj_br_ AT web DOT de>, <cygwin AT cygwin DOT com> |
Subject: | RE: Problems with find |
Date: | Fri, 31 Jan 2003 09:49:07 -0500 |
Message-ID: | <000001c2c937$eb95ea10$0302a8c0@calvin> |
MIME-Version: | 1.0 |
X-Priority: | 3 (Normal) |
X-MSMail-Priority: | Normal |
Importance: | Normal |
X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2800.1106 |
In-Reply-To: | <200301310857.h0V8vGO01862@mailgate5.cinetic.de> |
X-Authentication-Info: | Submitted using SMTP AUTH LOGIN at fep02-mail.bloor.is.net.cable.rogers.com from [24.102.123.73] using ID <ian DOT chesal AT rogers DOT com> at Fri, 31 Jan 2003 09:49:02 -0500 |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id h0VEnM201172 |
Your syntax is incorrect. Try: find . -name "1000*" I just tried in in /tmp on my cygwin installation and here's the output: $ find . -name 1000* -o -name 1000.* ./1000 ./1000/1000.zip ./1000.tar.gz You can limit the find to just files or directories with the -type flag. Do 'info find' to learn more. The way you had the expression written each conditional was joined with an implicit -a (and) so that find would only print if all three evaluated to true. You wanted a -o (or) between each pattern but really you can accomplish what you want with a quoted pattern, which IMHO is a more straight-forward way to look for what you want. Ian -----Original Message----- From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com] On Behalf Of fj_br_ AT web DOT de Sent: January 31, 2003 3:57 AM To: cygwin AT cygwin DOT com 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 ________________________________________________________________________ ______ Ihnen fehlen die richtigen Worte für Ihre SMS? WEB.DE FreeMail hat die besten Sprueche für Sie. http://freemail.web.de/features/?mc=021169 -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |