Linuxawk time computing script, linuxawk computing script _ PHP Tutorial

Source: Internet
Author: User
Linuxawk time computing script and linuxawk computing script. Linuxawk time computing script. if the scheduled time in linux is troublesome, use the following awk script: BEGIN {FS:; OFS :}{ total_secondstotal_seconds + $3 linux awk time computing script, linuxawk computing script

In linux, if the scheduled time is too long,

Run the following awk script:

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 time computing script, linuxawk computing script in linux if the scheduled time is a problem, use the awk script as follows BEGIN {FS = ":"; OFS = ": "} {total_seconds = total_seconds + $3...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.