#!/usr/bin/env sh # Lifted from https://superuser.com/a/1783477/3091052 awk '{m=int($1/60%60);h=int($1/3600%24);d=int($1/86400);printf "%sd %sh %sm\n", d, h, m}' /proc/uptime