Awk recherche avec deux pattern
Résolu/Fermé
GHISLINO
Messages postés
198
Date d'inscription
lundi 25 juillet 2011
Statut
Membre
Dernière intervention
21 décembre 2021
-
13 déc. 2017 à 18:44
GHISLINO - 16 déc. 2017 à 17:23
GHISLINO - 16 déc. 2017 à 17:23
A voir également:
- Awk recherche avec deux pattern
- Recherche musique - Guide
- Recherche par image - Guide
- Deux comptes whatsapp - Guide
- Canal tf1 tnt recherche manuelle - Forum TNT
- Deux ecran pc - Guide
3 réponses
dubcek
Messages postés
18587
Date d'inscription
lundi 15 janvier 2007
Statut
Contributeur
Dernière intervention
12 mars 2023
5 583
14 déc. 2017 à 08:35
14 déc. 2017 à 08:35
hello
$ awk -F ";" 'FNR==NR {t[$4,$5]=$0; next} {if(c=t[$4, $5])c=FS c; else c=""; ; print $0 c}' fiile2 file1
dubcek
Messages postés
18587
Date d'inscription
lundi 15 janvier 2007
Statut
Contributeur
Dernière intervention
12 mars 2023
5 583
15 déc. 2017 à 08:14
15 déc. 2017 à 08:14
plus court
$ awk -F ";" 'FNR==NR {t[$4,$5]=$0; next} c=t[$4, $5] {c=FS c} {print $0 c}' file2 file1