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.
