I haved a file like this:
1633092723, TRANSFERCHECK: OK
1633092771, TRANSFERCHECK: OK
1633092777, TRANSFERCHECK: OK
1633092805, TRANSFERCHECK: OK
1633092811, TRANSFERCHECK: OK
1633092818, TRANSFERCHECK: OK
1633092823, TRANSFERCHECK: OK
1633092852, TRANSFERCHECK: OK
1633092857, TRANSFERCHECK: OK
1633092863, TRANSFERCHECK: OK
1633092891, TRANSFERCHECK: OK
1633092898, TRANSFERCHECK: OK
1633092904, TRANSFERCHECK: OK
1633092911, TRANSFERCHECK: OK
1633092938, TRANSFERCHECK: OK
1633092945, TRANSFERCHECK: OK
1633092953, TRANSFERCHECK: OK
1633092984, TRANSFERCHECK: OK
the first colum is the absolut timestamp . How can I make an awk one-liner where the mean time between each abs. timestamp is calculated. It should be used to predicte the total duration of the process. I have done this but this makes the meantime of the timestamps and not the duration from one to the next one.
cat myfetchlog.log | awk -F, '{sum+=$1} END {print strftime("%c",sum/NR)}'
Thanks a lot. I am an awk beginner and would like to improve.