Si les fichiers ne sont pas forcément au même niveau d'arborescence :

find répertoire/racine/recherche -type f -name "*.txt" -exec grep
expression {} \; -print

Cordialement

Éric Dégenètais


Le 27 juin 2017 10:52, "Erwan David" <[email protected]> a écrit :

Le 06/27/17 à 10:50, Bernard Isambert a écrit :
> Si j'ai bien compris la question :
>
> for FIC in <fichiers>
> do
> grep -l -q <expression> "$FIC" || echo "$FIC"
> done
>
>

grep -L <expression> <fichiers>
plutôt.

Répondre à