Everyone, I have created a script for getting time difference between two different epoch time value.
Currently my script reads two value named a and b and gives the output of time different as shown below,
Input:
Enter the TIME A
12345567787
Enter the TIME B
12356777897
Output:
-00.36 hours
How I can read A and B value from a single text file named time.txt and save the time different output to another file "timediff.txt".
How my input file "time.txt" looks like.
A B
123456789 123456755
123445567 123434657
128765809 141536478
127576589 163636376
125364758 132653758
. .
. .
. .
n n
What i'm expecting to output file timediff.txt looks like,
A B output
123456789 123456755 03.00
123445567 123434657 09.00
128765809 141536478 04:44
127576589 163636376 08:22
125364758 132653758 05:13
. . .
. . .
. . .
n n n