When I do "cvs -n update
" command I get a long list of files that are modified, missing or new. In the output, I want to see only new files, it means I want to see lines starting with "?". Then I will do "cvs add file_name
" and add the new files to repository. My project is in Linux environment. Is there a special command to get that output on screen?
Asked
Active
Viewed 80 times
0

alwbtc
- 28,057
- 62
- 134
- 188
-
1*CVS* is really an obsolete versioning system. Did you consider using (and migrating to) `git` or at least to `svn` (Subversion)?? – Basile Starynkevitch Jul 14 '12 at 19:14
1 Answers
1
I don't think cvs
has support for this, I usually use grep
:
cvs -qn update | grep '^\?'

Thor
- 45,082
- 11
- 119
- 130
-
-
Those are two separate options, `-q` means "be quiet" and avoids showing a lot of progress information, `-n` is the dry run option. – Thor Jul 14 '12 at 10:23