hi,
i am dealing with this kind of table in text (space delimited)
full UNIX Daily Backup Pool
0% Windows Daily Backup Pool
23% UNIX Monthly Backup Pool
full Windows Weekly Backup Pool
5% Test Backup Pool
...
etc
what i am planning to do is to generate this kind of format:
Name Full Partially Full Free Total
UNIX Daily Backup Pool 3 5 5 13
UNIX Monlty Backup Pool 5 2 5 12
...
the problem that i am actually encountering is that there are only actually 2 colums, but since it is space delimited, awk sees more than two columns. (i can't modify the program that generates this output, its unmodifiable). how would i go about with dealing with only 2 columns?
right now, i am looking into using 2 dimensional arrays to hold the number of counts. is that efficient enough for the problem?
suggestions are highly apprciated... thanks
i am dealing with this kind of table in text (space delimited)
full UNIX Daily Backup Pool
0% Windows Daily Backup Pool
23% UNIX Monthly Backup Pool
full Windows Weekly Backup Pool
5% Test Backup Pool
...
etc
what i am planning to do is to generate this kind of format:
Name Full Partially Full Free Total
UNIX Daily Backup Pool 3 5 5 13
UNIX Monlty Backup Pool 5 2 5 12
...
the problem that i am actually encountering is that there are only actually 2 colums, but since it is space delimited, awk sees more than two columns. (i can't modify the program that generates this output, its unmodifiable). how would i go about with dealing with only 2 columns?
right now, i am looking into using 2 dimensional arrays to hold the number of counts. is that efficient enough for the problem?
suggestions are highly apprciated... thanks