Hello again,

* On Tue, Mar 16, 2010 at 04:39:45PM -0500 Harry Putnam wrote:
> Spiro Trikaliotis <[email protected]> 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