Problems with find
Ian R. Chesal
ian.chesal@rogers.com
Fri Jan 31 16:03:00 GMT 2003
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@cygwin.com [mailto:cygwin-owner@cygwin.com] On Behalf
Of fj_br_@web.de
Sent: January 31, 2003 3:57 AM
To: cygwin@cygwin.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/
More information about the Cygwin
mailing list