Differences between revisions 1 and 2
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
=== Find files in current Dir not in Version Control ===

{{{
cvs -qn update | grep "^?" | cut -f 2 -d " "
}}}

=== Add directories recursively ===

Warning: adds all directory under the current directory. Use `grep -v` to remove them. Chain multiple `grep -v`s

{{{
find . -type d -print0| xargs -0 cvs add
}}}

=== Add files recursively ===

Add all files under the current directory:
{{{
find . -type f | grep -v CVS | xargs cvs add
}}}

Add all files with extension `cxx` under the current directory:
{{{
find . -name "*.cxx" | grep -v CVS | xargs cvs add
}}}

'''Note''': All the commands involving recursive `cvs add` should first be invoked without the `cvs add` just to check.