1

我试图找到一种简单的方法,通过运行 cvs update 或 cvs status 并将输出限制为我修改过的文件,来查看我在签出的代码中修改了哪些文件。

我开始做以下变化:

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

为了只得到修改了 M 的行。那没有用。

有人建议:

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

这也没有达到预期的结果。grep 是在这里使用的正确工具吗?

谢谢!

4

1 回答 1

1

试试cvs update 2>&1 | ...IIRC,cvs 的日志输出是到 stderr,而不是 stdout,所以默认情况下管道不会捕获它。

于 2009-06-04T15:04:33.127 回答