Zoeken in bestanden

Alles

find . | xargs grep 'zoekstring' -sl 

Filetype

find . -iname '*php' | xargs grep 'zoekstring' -sl 

vandaag aangepast

find . -iname '*php' -mtime -1 | xargs grep 'zoekstring' -sl 

niet vandaag aangepast

find . -iname '*php' -mtime +1 | xargs grep 'zoekstring' -sl 

bestanden verwijderen met bepaalde inhoud

find . | xargs grep 'zoekstring' -sl |xargs rm

foutmelding xargs: unmatched single quote

find . -printf '"%p"\n' | xargs grep 'zoekstring' -sl