I have a file that I add up all the same entries in column 1 divide that by 1024 and output the data in column 2. Looks like so
DZ0T,13.8802
I now need to take that number and divide it by a number (let's say 10) and add another column next to it. Like so
DZ0T,13.8802,1.38802
I use this code to do the first part, how do I do the second part
|awk -F, '{if ($2 >= 1){array[$1]+=$2/1024}} END { for (i in array) {print i"," array}}
Thanks