I need a script to find the difference between corresponding values of successive rows. So the output would have one less row than the input file and should look like:
I would like to perform the mathematical operation (subtract) rather than just printing them, i.e. it should print the "actual" values of a2-a1 b2-b1 c2-c1 d2-d1 and so on for rest of the rows.