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