Re: about imports and cvs update

Harry Putnam <[email protected]>
Newsgroups gmane.comp.version-control.cvs.general
Organization Still searching...
Message-ID <[email protected]>
Spiro Trikaliotis <[email protected]> writes:

>> 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 like it but:
Now you've stepped away from readability a slight bit in my opinion. I
suspect there are many cvs users even with unix backgrounds who would
have to ponder the -prune and -print0 flags a bit.

I think maybe the double grep -v is a bit more obvious. I know its not
really considered kosher by old unix hands...

I use find very frequently and have for many yrs, but would have had
to pound on `man find' a while to come up with that.

I've used both -prune and -print0 but don't often find need of it.  In
fact, only rarely.
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.