![]() |
|
|
google unix.com
|
|||||||
| Forum | Registrati | Regole Forum | Collegamenti | Album | FAQ | Members List | Calendario | Ricerca | Today's Posts | Mark Forums Read |
| Shell scripting e di programmazione Pubblica domande su KSH, CSH, SH, Bash, Perl, PHP, sed, awk e da altri script di shell e linguaggi di scripting shell qui. |
|
|
LinkBack | Thread Tools | Cerca in questo Thread | Rate Thread | Modalità di visualizzazione |
|
||||
|
awk aiutare
Ciao a tutti, Codice:
Input file: file.txt _____________________ 7789 0 3445 1 7789 1 1223 0 4567 0 7789 0 7789 0 1212 1 3445 0 7789 1 3445 1 How can I get the output as: <number> <no_0_entries> <no_1_entries> i.e. 7789 3 2 3445 1 2 1223 1 0 4567 1 0 1212 0 1 Non ho fortuna nella soluzione di questo, si prega di aiuto. Grazie. |
| Segnalibri |
| Thread Tools | Cerca in questo Thread |
| Modalità di visualizzazione | Vota questo thread |
|
|