Matt
Matt

Reputation: 13

Trying to grep cygwin output from cvs commands

I am trying to find an easy way to see what files I have modified in my checked out code by running either cvs update or cvs status and limiting the output to the files I have modified.

I started by doing variations on:

cvs update | grep "M " // this did nothing useful.
cvs update | grep -e "M " * // this got me all the files that had "M " in them.

in order to only get the lines that have the M for modified. That did not work.

Someone suggested:

cvs status -v | grep Locally // -v prints the verbose status to ouput

and that also did not have the expected results. Is grep the correct tool to be using here?

Thanks!

Upvotes: 1

Views: 602

Answers (1)

Aaron Digulla
Aaron Digulla

Reputation: 328594

Try cvs update 2>&1 | ... IIRC, the log output of cvs is to stderr, not stdout, so the pipe doesn't catch that by default.

Upvotes: 1

Related Questions