UNIX grep sur une seule ligne
Résolu/Fermé
A voir également:
- UNIX grep sur une seule ligne
- Aller à la ligne sur excel - Guide
- Hors ligne instagram - Guide
- Vente en ligne particulier - Guide
- Comment imprimer un tableau excel sur une seule page - Guide
- Partage de photos en ligne - Guide
2 réponses
dubcek
Messages postés
18718
Date d'inscription
lundi 15 janvier 2007
Statut
Contributeur
Dernière intervention
22 mars 2024
5 615
3 mars 2010 à 16:36
3 mars 2010 à 16:36
hello
quelque chose comme ça ?
quelque chose comme ça ?
$ awk '/ville/ {split($0,v,":");err[v[2]]=0} ; /ERROR/ {err[v[2]]++;e[i++]=$0} ; END{for (n in err)print n,err[n];for(n in e)print e[n]}' fichier Monaco 1 Djibouti 1 Dubaï 3 [ERROR] BLABLA [ERROR] BLABLA [ERROR] BLABLA [ERROR] BLABLA [ERROR] BLABLA $