2012年6月6日 星期三

[TOOL] CVS add directories recursively


First, add all the directories, but not any named "CVS":
find . -type d \! -name CVS -exec cvs add '{}' \;
Then add all the files, excluding anything in a CVS directory:
find . \( -type d -name CVS -prune \) -o \( -type f -exec cvs add '{}' \; \)
find . -type f -print0| xargs -0 cvs add
Reference

沒有留言:

張貼留言