[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Best practices: living with .svn?

From: Glenn Maynard <g_sub_at_zewt.org>
Date: 2004-04-12 02:53:17 CEST

On Sun, Apr 11, 2004 at 07:26:31PM +0300, Kalle Olavi Niemitalo wrote:
> A pipe like this would avoid that problem:
>
> find . -name .svn -prune -or -print0 | xargs -r0 grep -H regex
>
> However, this is more difficult to wrap with a grep-like syntax:
> the directory (or file) names would have to be separated from
> grep options, and names like -foo would have to be changed to
> ./-foo.

That's what "--" is for.

grep "regex" -- -filename.txt

find -args -print0 | xargs -r0 grep 'regex' --

-- 
Glenn Maynard
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Apr 12 02:54:45 2004

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.