Dear All,
Good day, Just i would like to know that is there anything called difference operator in awk?
For example, if a file contains 5 columns (as shown below) with both negative and positive values:
Col1 Col2 Col3 Col4 Col5
I need to calculate the difference between Col1 and Col2, Col2 and Col3, Col3 and Col4, Col4 and Col5, and i need to print out the same in an output file as: New_Col1 New_Col2 New_Col3 New_Col4
Can any one help me in this regard?
Expecting your reply and thanks in advance.
Regards
Fredrick.