[darcs-users] a bash tip for easily excluding the _darcs directory
Ralph Corderoy
ralph at inputplus.co.uk
Wed Mar 9 11:36:59 UTC 2005
Hi Gerhard,
> > Please consider suggesting xargs(1) since it saves many invocations of
> > grep.
> > find . \( -path ./_darcs -o -path ./subrepo/_darcs \) -prune -o \
> > -print |
> > xargs grep string /dev/null
>
> Better yet use zero-ended strings if some of the files contain spaces
> in the filename
>
> find . \( -path ./_darcs -o -path ./subrepo/_darcs \) -prune -o \
> -print0 |
> xargs -0 grep string /dev/null
People may not have GNU find and GNU xargs. Have the NUL versions
reached POSIX yet?
Cheers,
Ralph.
More information about the darcs-users
mailing list