0

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?

alwbtc
  • 28,057
  • 62
  • 134
  • 188

1 Answers1

1

I don't think cvs has support for this, I usually use grep:

cvs -qn update | grep '^\?'
Thor
  • 45,082
  • 11
  • 119
  • 130
  • Thank you. What is -qn option? Is it different than -n option? – alwbtc Jul 14 '12 at 10:04
  • 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