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/


Reply via email to