rendered paste body#!/bin/bashFILE=${1}TIME=00:00:00LASTTIME=00:00:00while read -r line;do TIME=$(echo ${line} | awk '{print $1}') TIMEINSECONDS=$(date -u -d "$TIME" +"%s") LASTTIMEINSECONDS=$(date -u -d "$LASTTIME" +"%s") TIMEDIFFERENCE=$(date -u -d "0 $TIMEINSECONDS sec - $LASTTIMEINSECONDS sec" +"%S") if [ $TIMEDIFFERENCE -ge 02 ] then echo -e "\n\n" for t in `seq 1 $TIMEDIFFERENCE` do echo -e "________________________________________________________________________________" done echo -e " ---Paused for ${TIMEDIFFERENCE} seconds---\n\n" fi echo -e "${line}" LASTTIME=$TIMEdone < ${FILE}