Created
May 30, 2014 18:28
-
-
Save whitlockjc/9a5bd44e171f29c76b9e to your computer and use it in GitHub Desktop.
Human readable uptime
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uptime | sed 's/,//g' | cut -f 4- -d ' ' | sed 's/ [0-9][0-9]* users .*//' | sed 's/\(.*\):\(.*\)/\1 hours \2 mins/' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment