2 réponses
dubcek
- Messages postés
- 18240
- Date d'inscription
- lundi 15 janvier 2007
- Statut
- Contributeur
- Dernière intervention
- 30 novembre 2020
hello
Resultat
FileX
1504287881;T;R;T;g;i;u;NO;NO
1409579890;T;R;T;g;i;u;NO;NO <-----faux, non ?
...
Resultat
FileX
1504287881;T;R;T;g;i;u;NO;NO
1409579890;T;R;T;g;i;u;NO;NO <-----faux, non ?
...
$ awk -F ";" '(n=ARGIND)<3 {t[n, $5]++; next} {t[1, $1]? a="YES": a="NO"; t[2, $1]? b="YES": b="NO"; print $0 FS a FS b}' File2 File3 File1
1504287881;T;R;T;g;i;u;NO;NO
1409579890;T;R;T;g;i;u;NO;YES
1504368132;T;R;T;g;i;u;YES;NO
1504491356;T;o;T;g;i;u;YES;YES
1504509233;T;R;p;g;x;u;YES;YES
1504549350;T;R;T;g;y;u;NO;NO
1504525525;T;R;T;k;i;u;NO;NO
1504510693;T;R;T;g;i;u;NO;NO