我在Unix box>上的一个目录中签出了代码。
我需要比较两个文件,看看它们在整个代码中是如何被引用的。因此,这将涉及到搜索目录,然后搜索文件。
所以我在某种程度上是这样的
search through files within the folder structure | grep "myReference" | less问题是我不知道一种有效的方法来做第一位。
发布于 2012-05-14 18:00:34
grep -nir 'myReference' . |更少
发布于 2012-05-14 18:03:38
grep -nr "Search term" /path/to/files/ https://stackoverflow.com/questions/10581096
复制相似问题