Re: about imports and cvs update

Spiro Trikaliotis <[email protected]>
Newsgroups gmane.comp.version-control.cvs.general
Message-ID <[email protected]>
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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.