I have 2 files:
a.txt
:
0.513603
0.513141
0.513141
0.513046
0.513263
0.512889
0.512889
0.512097
0.51112
0.511863
b.txt
:
0.5132405
0.51319025
0.51311625
0.51305325
0.512903125
0.512516625
0.5121205
0.5118095
0.511543
0.511598125
I want to know % change from both file to their corresponding line. I not able to think of how to implement it using Shell script. Every 5 minute data will be generated in both files but no of records will be same in both files each time.
Example:
(0.513603 - 0.5132405)/100