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
grep -r db-connect.php . | grep version
Why to stick to only grep:
perl -lne 'print if(/db-connect.php/&/version/)' *