|
Publicité ' | |||||||||||||||||||||||
|
|
#1 | ||
|
Nouveau Membre du Club
![]() Inscription : août 2007 Messages : 207 ![]() |
Bonjour à tous,
Voilà j'ai un fichier texte, les données sont structurées comme suit: Code :
Je voudrai au final obtenir la somme donc 7. Avez-vous une idée sur une commande linux qui fait ça? Je suppose qu'il faudra une suite de commandes merci |
||
|
|
00
|
|
|
#2 |
|
Nouveau Membre du Club
![]() Inscription : août 2007 Messages : 207 ![]() |
oups,
pour la deuxième ligne, il y a un espace qui précede les ":" merci |
|
|
00
|
|
|
#3 |
|
Membre éprouvé
![]() Consultant telecoms Inscription : mars 2006 Messages : 426 ![]() |
Vois du coté du Programme SED, et oui, il te faudra faire des pipelines.
__________________
"When you can measure what you are speaking about, and express it in numbers, you know something about it; but when you cannot measure it, when you cannot express it in numbers, your knowledge is of a meager and unsatisfactory kind; it may be the beginning of knowledge, but you have scarcely in your thoughts advanced to the state of Science, whatever the matter may be." Lord Kelvin - 1883. |
|
00
|
|
|
#4 |
|
Nouveau Membre du Club
![]() Inscription : août 2007 Messages : 207 ![]() |
merci pour ta réponse. Au fait, j'ai finalement ecrit un script awk
|
|
|
00
|
Copyright © 2000-2012 - www.developpez.com