6
Comment remplacer une ligne entière par sed?
Supposons que j'ai un fichier avec des lignes aaa = bbb Maintenant, je voudrais les remplacer par: aaa = xxx Je peux le faire comme suit: sed "s / aaa = bbb / aaa = xxx / g" Maintenant, j'ai un fichier avec quelques lignes comme suit: aaa = bbb …