URL: https://linuxfr.org/forums/programmation-shell/posts/remplacer-des-cellules Title: Remplacer des cellules Authors: Cam Date: 2017年03月08日T09:09:22+01:00 License: CC By-SA Tags: shell, bash, script, sh et awk Score: 3 Bonjour, Ce forum m'a bien aidé jusque là dans ma découverte du shell mais là je bloque. Je suis nouvellement admin réseau et j'ai 2 fichiers .csv que je veux fusionner. **identifiants2015.csv**> $cat identifiants2015.csv CLASSE,NOM,PRENOM,IDENTIFIANT,M.de P. c601,A,antoine,antoine.a,4f56yg c504,B,micheline,micheline.b,654pgh **identifiants2016.csv**> $cat identifiants2016.csv CLASSE,NOM,PRENOM,LOGIN,MOT DE PASSE c601,Z,bob,bob.z,t954fd c502,A,antoine,antoine.a,(déjà attribué) c404,B,micheline,micheline.b,(déjà attribué) Et je voudrais obtenir ceci en remplaçant "(déjà attribué)" par le mot de passe 2015. **logins2016_maj2016.csv**> $cat logins_maj2016.csv CLASSE,NOM,PRENOM,LOGIN,MOT DE PASSE c601,Z,bob,bob.z,t954fd c502,A,antoine,antoine.a,4f56yg c404,B,micheline,micheline.b,654pgh Je me doute qu'il y a quelque chose à faire avec awk mais je n'y arrive pas. La lecture dans les deux fichiers simultanément me pose problème. Avez-vous une solution pour moi ? Merci d'avance

AltStyle によって変換されたページ (->オリジナル) /