How can I use grep
to show just file-names (no in-line matches) on Linux?
(如何在Linux上使用grep
来显示文件名(没有内联匹配)?)
I am usually using something like:
(我通常使用类似的东西:)
find . -iname "*php" -exec grep -H myString {} ;
How can I just get the file-names (with paths), but without the matches?
(我怎样才能获得文件名(带路径),但没有匹配?)
Do I have to use xargs
? (我必须使用xargs
吗?)
I didn't see a way to do this on my grep
man page. (我没有在grep
手册页上看到这样做的方法。)
ask by cwd translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…