#!/bin/sh

ls -l --time-style=long-iso | grep block1.dat | awk 'BEGIN{To=0;Tbeg=0}{ D1=$6; D2=$7; gsub(/-/," ", D1); gsub(/:/," ", D2); T=mktime(D1 " " D2 " 00") ;  if(To==0) {dT="//"; Tbeg=T;} else dT=(T-To)/60 " min" ; print $8 ": " $6 " " $7 " --> " dT ; To = T;  }END{ print "Total time: " (T - Tbeg)/60 " min"}'


