ChrisBroadway
MIS
Hello all,
I seem to have pushed my awk knowledge to the limit, any help would be greatly appreciated.
I have a file in the following format
14:15:01 47 44 50 43 50 47 46 46 41 55 53 34
14:30:00 49 44 48 40 52 47 41 40 41 51 53 34
14:45:01 47 44 46 43 53 47 42 46 40 55 53 32
I would like to append a line to this with an average of each column. The first field is a timestap so I want to ignore that and average all the other columns. The thing thats really baffling me is that the data has a varying number of columns depending on which system I run it on.
Any suggestions ?
Thanks
Chris
I seem to have pushed my awk knowledge to the limit, any help would be greatly appreciated.
I have a file in the following format
14:15:01 47 44 50 43 50 47 46 46 41 55 53 34
14:30:00 49 44 48 40 52 47 41 40 41 51 53 34
14:45:01 47 44 46 43 53 47 42 46 40 55 53 32
I would like to append a line to this with an average of each column. The first field is a timestap so I want to ignore that and average all the other columns. The thing thats really baffling me is that the data has a varying number of columns depending on which system I run it on.
Any suggestions ?
Thanks
Chris