Bonjour,
je cherche comment je peux chercher deux mots différents dans un fichier.
Remarque: je sais comment chercher un seul mot.
grep nom nomdefichier
ou bien pour le compter
grep -c nom nomdefichier
Merci pour votre réponses
Bonjour,
je cherche comment je peux chercher deux mots différents dans un fichier.
Remarque: je sais comment chercher un seul mot.
grep nom nomdefichier
ou bien pour le compter
grep -c nom nomdefichier
Merci pour votre réponses
grep mot1 fichier1 | grep mot2
ca sort tous les fichiers contenant ces 2 mots![]()
Partager