aboutsummaryrefslogtreecommitdiffstats
path: root/commands/uptime
diff options
context:
space:
mode:
Diffstat (limited to 'commands/uptime')
-rwxr-xr-xcommands/uptime7
1 files changed, 7 insertions, 0 deletions
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/
+'