[Top][All Lists]
[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/
- about imports and cvs update, Harry Putnam, 2010/03/13
- Re: about imports and cvs update, Michael Haggerty, 2010/03/14
- Re: about imports and cvs update, Harry Putnam, 2010/03/14
- Re: about imports and cvs update, Spiro Trikaliotis, 2010/03/14
- Re: about imports and cvs update, Harry Putnam, 2010/03/14
- Re: about imports and cvs update, Spiro Trikaliotis, 2010/03/15
- Re: about imports and cvs update, Harry Putnam, 2010/03/16
- Re: about imports and cvs update, Kenneth Wolcott, 2010/03/16
- Re: about imports and cvs update, Spiro Trikaliotis, 2010/03/16
- Re: about imports and cvs update, Harry Putnam, 2010/03/16
- Re: about imports and cvs update,
Spiro Trikaliotis <=
- Re: about imports and cvs update, Michael Haggerty, 2010/03/17
- Re: about imports and cvs update, Spiro Trikaliotis, 2010/03/17
- Re: about imports and cvs update, Harry Putnam, 2010/03/18
- Re: about imports and cvs update, Spiro Trikaliotis, 2010/03/20
- Re: about imports and cvs update, Michael Haggerty, 2010/03/14
- Re: about imports and cvs update, Harry Putnam, 2010/03/14
Re: about imports and cvs update, Larry Jones, 2010/03/14