find / grep to list files with php's short_open_tag

Reindl Harald h.reindl at thelounge.net
Tue May 7 17:41:21 UTC 2013


am i stupid or grep? :-)

find /data/www/ -type f -name \*.php -exec grep -l -i -n -F "<?" '{}' \;
lists any file which contains  "<?" under the path /data/www/

find /data/www/ -type f -name \*.php -exec grep -l -i -n -F "<?\n" '{}' \;
is expected to find any file with "<?" followed directly by a linebreak
but that does not work and if someone finds google empty it was me :-(


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://lists.fedoraproject.org/pipermail/users/attachments/20130507/1ee934e7/attachment.sig>


More information about the users mailing list