Bash : joint 2 fichiers ?
Résolu/Fermé
A voir également:
- Bash : joint 2 fichiers ?
- Retour à la ligne bash ✓ - Forum Shell
- Bash path - Astuces et Solutions
- Bash permission non accordée - Forum Shell
- Bingo bash free - Télécharger - Divers Jeux
- Bash arguments - Astuces et Solutions
3 réponses
dubcek
Messages postés
18718
Date d'inscription
lundi 15 janvier 2007
Statut
Contributeur
Dernière intervention
22 mars 2024
5 615
27 févr. 2015 à 15:25
27 févr. 2015 à 15:25
hello
avec awk
avec awk
$ awk 'FNR==NR {t[$1]=$0; next} {x=$1; $1=""; print t[x] $0}' A B
man01 xxx yyy zzz ggggg kkkkk
man02 xxx yyy zzz yyyy
man02 xxx yyy zzz tttttt jjjjjj
man04 xxx yyy zzz lllllll rrrrrrrr eeeeeee
zipe31
Messages postés
36402
Date d'inscription
dimanche 7 novembre 2010
Statut
Contributeur
Dernière intervention
27 janvier 2021
6 407
27 févr. 2015 à 10:56
27 févr. 2015 à 10:56
Salut,
Voir la commande
Voir la commande
join;-)