I want to display /proc/uptime in well format as:DD:HH:MM:SS/proc/uptime give me up time of system in seconds, is there a standard solution that convert seconds to this format?
Convert linux sysuptime to well format date
shell;time;uptime
Here's a way without perl:awk '{printf(%d:%02d:%02d:%02d\n,($1/60/60/24),($1/60/60%24),($1/60%60),($1%60))}' /proc/uptime