Dans le fichier suivant, je cherche juste une commande grep:Comment utiliser 'grep' pour faire correspondre une chaîne sauf si une autre chaîne correspond?
Line 1 : string 1 (errno:1)
Line 2 : string 1 (errno:3)
Line 3 : string 1 (errno:1)
Line 4 : string 1 (errno:1)
Il doit correspondre à « chaîne 1 » et non égal à « errno: 1 ». Comment puis-je faire cela en utilisant grep?
UUOC aka utilisation inutile de cat. Commençons simplement par 'grep 'string1" ' –
SiegeX