2009-06-04 69 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