Hi,
I have a following input data:
AATGCCACGTTGAGAGGCGTTCGCGGAAGGCGCG 44 40.000
AATGCCACTCGGGTCCGAGATGGCGGATCTCCAC 35 37.000
AATGCCAGAGCTGTGGTAGTGTGAAAGCAGCAGT 13 13.000
What I want to do is to substract column 3 by column 2 yielding:
AATGCCACGTTGAGAGGCGTTCGCGGAAGGCGCG -4
AATGCCACTCGGGTCCGAGATGGCGGATCTCCAC 2
AATGCCAGAGCTGTGGTAGTGTGAAAGCAGCAGT 0
But why this awk doesnt' work:
$ awk '{dif =($3 - $2)}END{print dif}' input.txt