I want to subtract a column from 100 using awk. I tried
awk '{ t = 100-$2 } END { print t }' /alps/average.log
This only gave me the last value to subtract. How can this be done if I want the entire column to be output to the terminal?
Tush4449
a source
to share