All pastes #3585396 Raw Edit

SecondsToLines.sh

public unlisted shellscript v1 · immutable
#3585396 ·published 2016-04-28 18:50 UTC
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}