Search this blog

vendredi 4 février 2011

Linux: GREP recursif / recursive GREP

Combiner grep et find pour chercher une chaine de caractère dans les fichiers texte d'un dossier de façon récursive:
find . -type f -name \*.html -print | xargs grep "Texte à chercher"

Combine grep and find to search recursively text files in a folder for a text string:
find . -type f -name \*.html -print | xargs grep "Text to search"

Aucun commentaire:

Enregistrer un commentaire