Grep Search all files in directory for string1 AND string2

前端 未结 8 485
迷失自我
迷失自我 2020-12-31 02:22

How can I make use of grep in cygwin to find all files that contain BOTH words.

This is what I use to search all files in a directory recursively fo

8条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-31 03:11

    Why to stick to only grep:

    perl -lne 'print if(/db-connect.php/&/version/)' *
    

提交回复
热议问题