在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

相关文章:

  • 2021-08-17
  • 2021-08-05
  • 2022-12-23
  • 2021-11-05
  • 2022-12-23
  • 2021-08-18
  • 2021-07-25
  • 2022-02-26
猜你喜欢
  • 2021-12-28
  • 2022-12-23
  • 2022-12-23
  • 2021-08-10
  • 2021-06-10
  • 2022-12-23
相关资源
相似解决方案