linux awk时间计算脚本,linuxawk计算脚本在linux如果计划时间是个麻烦事,
用awk脚本如下
begin {fs=:;ofs=:} {total_seconds=total_seconds+$3} total_seconds>=60 {total_seconds=total_sconds-60 $2=$2+1 }{total_minutes=total_minutes+$2 $2=$2+1 }{total_minutes=total_minutes+$2} total_minutes>=60{total_minutes=total_minutes-60 $1=$1+1}{total_hours=total_hours+$1}end{print $1,$2,$3}
email:362299908@qq.com
http://www.bkjia.com/phpjc/1070665.htmlwww.bkjia.comtruehttp://www.bkjia.com/phpjc/1070665.htmltecharticlelinux awk时间计算脚本,linuxawk计算脚本 在linux如果计划时间是个麻烦事, 用awk脚本如下 begin {fs= : ;ofs= : } {total_seconds =total_seconds+$ 3...