Re: cvs: php4 /scripts credits
| From: | Jason Greene | Date: | Thu, 14 Mar 2002 14:48:51 +0000 |
| Subject: | Re: cvs: php4 /scripts credits | ||
| References: | 1 2 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-10121@lists.php.net to get a copy of this message | ||
On Thu, 2002-03-14 at 04:28, Hartmut Holzgraefe wrote:
> Adam Maccabee Trachtenberg wrote:
> > No need for grep, you can use find directly.
> >
> > find "$what" -name CREDITS -not -path "$what/skeleton/CREDITS'
>
> '-not' and '-path' are not portable
>
> '-not' can be replaced by '-a !', but there is no substitute for
> '-path' in eg. the find binary that comes with solaris
>
> --
> Hartmut Holzgraefe hartmut@six.de http://www.six.de
> +49-711-99091-77
>
> Wir stellen für Sie aus auf der CeBIT 2002 und freuen uns
> in Halle 6 auf Ihren Besuch am Stand H 18
>
Also, using -exec would not be a good idea because you would be
unnecessarily causing a fork()/exec() for every CREDITS file in the
tree. xargs could be used, but that increases the requirements for
installed programs, as well as another fork()/exec()
--
Jason T. Greene
Internet Software Engineer
<jason@inetgurus.net>
<jason@php.net>
<jason.greene@tdstelecom.com>
Use PHP: http://www.php.net