I have:
col
.4
.3
.7
I want:
col
.4
.3
.3
My column is one column amongst others, I only want to apply this math to this column only while leaving all others unchanged. I want to print all columns (after applying the math).
I tried this:
awk '{print $0, ($1 > .5 ? 1 - $1 : $1)}'
but does not seem to work.