尝试从 cvs 命令 grep cygwin 输出

发布于 2024-07-23 18:35:48 字数 463 浏览 2 评论 0原文

我试图找到一种简单的方法来查看我在签出的代码中修改了哪些文件,方法是运行 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

念﹏祤嫣 2024-07-30 18:35:48

尝试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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文