Human readable uptime - awk =========================== Public domain ******************************************************************************** awk '{ sec = int($1) day = int(sec/3600/24) sec -= day*24*3600 hour = int(sec/3600) sec -= hour*3600 min = int(sec/60) print day"d "hour"h "min"m" }' /proc/uptime ******************************************************************************** _BY: Pejman Moghadam_ _TAG: awk, uptime_ _DATE: 2011-12-09 11:30:39_