Name : BETA-TESTERS
Project name : ZW3B-API-BETA-TESTERS
Authorized. - 200 - Client API Name and Origin Wildcard OK
La commande xargs combinée avec grep permet de trouver une chaîne de caractères dans un fichier en sortie d'une recherche find
find
avec xargs
et grep
:
On fait une recherche sur un type de fichier ou sur autre chose (Cf: Utiliser FIND pour retrouver un fichier ) puis on utilise GREP pour retrouver une chaine de caractères .
On ajoute un XARGS entre ;)
Çà donne cela :
Recherche du répertoire courant (.
)
dans tous les fichiers *.php
l'expression $config
:
Script avec 1 ligne
001find . -type f -name "*.php" -print | xargs grep --color=always -n "$config"