我如何递归地遍历整个版本库并列出包含特定文本的文件?
最佳答案
您可以使用 ack
(站点:http://betterthangrep.com/,我喜欢这个域名;)):
它默认忽略 .svn
并在多个平台上运行,包括 Windows,是一个 Perl 程序。
使用示例:
在C程序中查找所有#include
文件:
ack --cc '#include\s+<(.*)> --output '$1' -h
证明示例:
"Grepping of SVN repositories was driving me crazy until I found ack. It fixes all of my grep annoyances and adds features I didn't even know I wanted." --
关于windows - 在颠覆存储库中递归查找包含文本的文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5950826/