I\'m using the following command on Ubuntu to list all files containing a given pattern:
for f in *; do if grep -zoPq "foo\\nbar" $f; then echo $f;