bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug #20997] Patterns in files and directories


From: Eric Blake
Subject: Re: [bug #20997] Patterns in files and directories
Date: Fri, 07 Sep 2007 09:10:32 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Eric Blake on 9/7/2007 9:05 AM:
> 
> Likewise, dual file-type matching is already possible, as in this example
> that finds both directories and regular files:
> 
> $ find CVS ( -type d -o -type f )

Hmm - the Savannah bug mailer isn't too smart.  The above line in the
email got eaten, but the web page shows the correct syntax:

find CVS \( -type d -o -type f \)

You have to quote ( and ) to make them not be interpreted by the shell.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG4Wnn84KuGfSFAYARAqkgAKCZM1EY5oj4vClJrH0D1KUzjW0KvQCeKnQy
tmV2LEPPki3lJQab1AeKT5I=
=D18k
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]