info-cvs
[Top][All Lists]
Advanced

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

Re: about imports and cvs update


From: Spiro Trikaliotis
Subject: Re: about imports and cvs update
Date: Wed, 17 Mar 2010 10:00:13 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

Hello again,

* On Tue, Mar 16, 2010 at 04:39:45PM -0500 Harry Putnam wrote:
> Spiro Trikaliotis <address@hidden> writes:
[...]
> >> > $ find . | grep -v \/CVS\/ | grep -v \/CVS$ | tr \\n \\0 | xargs -0 -n 
> >> > 10 cvs add --
 
> OK, maybe the double use of grep -v could have been combined 

... but this looks *really* ugly:

$ find . | grep -v \/CVS\\\(\/\\\|$\\\) | tr \\n \\0 | xargs -0 -n 10 cvs add --

or, a little bit better:

$ find . | grep -v "\/CVS\(\/\|$\)" | tr \\n \\0 | xargs -0 -n 10 cvs add --

Either way, I prefer understandability over efficiency here. It is not
that such a skript is running 24/7 on my machines. ;)


Anyhow, I am sure there are better ways to achieve the intended result
than what I have written here.

Best regards,
Spiro.

-- 
Spiro R. Trikaliotis                              http://opencbm.sf.net/
http://www.trikaliotis.net/                     http://www.viceteam.org/




reply via email to

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