[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 15:03:54 +0100 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
Hello Michael,
* On Wed, Mar 17, 2010 at 02:00:53PM +0100 Michael Haggerty wrote:
> Spiro Trikaliotis wrote:
[...]
> > $ find . -type d | grep -v \/CVS$ | tr \\n \\0 | xargs -0 -n 10 cvs add --
>
> The find command is flexible enough to do most of the work itself:
>
> $ find . -type d \( -name CVS -prune -o -print0 \) | xargs -0 -n 10 cvs add --
>
> and this variation should be safe regardless of what crazy characters
> are present in filenames.
Thank you!
I already thought it must be easier than grepping through it myself.
However, I did not find the right places in the manpage of find in order
to solve this.
I already knew about -print0 - in fact, I am using it regularly.
However, this would have interferred with my grep, thus, I avoided it.
Again, thank you for giving me the starting point to really understand
find.
Best regards,
Spiro.
--
Spiro R. Trikaliotis http://opencbm.sf.net/
http://www.trikaliotis.net/ http://www.viceteam.org/
- Re: about imports and cvs update, (continued)
- 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, 2010/03/17
- Re: about imports and cvs update, Michael Haggerty, 2010/03/17
- Re: about imports and cvs update,
Spiro Trikaliotis <=
- 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