尝试从 cvs 命令 grep cygwin 输出
我试图找到一种简单的方法来查看我在签出的代码中修改了哪些文件,方法是运行 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 是这里使用的正确工具吗?
谢谢!
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!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试
cvs update 2>&1 | ...
IIRC,cvs 的日志输出到 stderr,而不是 stdout,因此默认情况下管道不会捕获它。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.