I have two text files. One file has startdatetime and second file have enddatetime.
file 1 data(startdate-time):
2019-01-08 04:14:59
2019-01-08 04:16:57
file 2 data(enddate-time):
2019-01-08 04:15:50
2019-01-08 04:17:02
I need Unix script which will perform operation on endtime - starttime (only on time). Example for first entry it should perform:
04:15:50 - 04:14:59
and give result in seconds (for this example, it should print out the number 51total difference seconds).