2009-06-04 98 views
1

我想通过运行CVS更新或CVS状态并限制输出到我已修改的文件来试图找到一个简单的方法来查看我已检出的代码中修改了哪些文件。试图从CVS命令grep cygwin输出

我开始做变化:为了

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是在这里使用的正确工具吗?

谢谢!

回答

1

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

+0

啊非常好。由于某种原因,&并没有帮助,但是做到了 cvs status -v 2> 1 | grep本地 完全给我我正在寻找的东西! – Matt 2009-06-04 15:11:41