Hi all,
I have 2 files which has only ,same "n" number of lines which are all numbers. I need to subtract them to the alternate line of the other file.
Code:
Say, file1 has as below:
20
40
60
80
100
Code:
file2 has as below:
10
30
50
70
90
I need a loop to subtract the with their alternate files as below:
Code:
20-10=10
40-30=10
60-50=10
This is just an example.I need someone to help me to frame the loop for this.
Thanks