From 27d31204e1dff7222fa63e674b2f114fe6e7c38d Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 9 Sep 2011 22:54:46 +0200 Subject: //Reaktor/commands/uptime: initial commit --- commands/uptime | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 commands/uptime (limited to 'commands/uptime') diff --git a/commands/uptime b/commands/uptime new file mode 100755 index 0000000..def9bf4 --- /dev/null +++ b/commands/uptime @@ -0,0 +1,7 @@ +#! /bin/sh +# +# //Reactor/commands/uptime - IRC-optimized uptime output +# +uptime | sed ' + s/^\(.*\) up \(.*\) days\?, *\(.*\), *\(.*\) users\?, *load average: \(.*\)$/\1; \2d \3; \4u; \5/ +' -- cgit v1.2.3