aboutsummaryrefslogtreecommitdiffstats
path: root/commands/uptime
blob: def9bf4fe3d84aa8e6aec495a0d8cf0ee2cbea57 (plain)
1
2
3
4
5
6
7
#! /bin/sh
#
# //Reactor/commands/uptime - IRC-optimized uptime output
#
uptime | sed '
  s/^\(.*\) up \(.*\) days\?, *\(.*\), *\(.*\) users\?, *load average: \(.*\)$/\1; \2d \3; \4u; \5/
'