how can i limit the output to only php, html, htm files?
i found this as one way
find . -regex ".*\(php\|html\|htm\)$" -type f -print0 | xargs -0 grep 'keyword'
and it works but is a bit slow
is there any faster way?
i tried something like this but it doesnt work:
find ./ -iname "*.php" -or -iname "*.html"
how can i do an "or" for -name *.php
or -name *.htm
or -name *.html?