[Solved] text manipulation by addition and multiplication
Here’s another version if you can’t work with the other answer: awk -vval=2.1 ‘{ # set “val” to the new value for column 3 on first two lines if(NR==1 || NR==2) { # if it’s the first or second line $3=val; # set column 3 to val $2=$3*2.9 # set column 2 to column 3 … Read more