summaryrefslogtreecommitdiffstats
path: root/Reaktor/commands/uptime
diff options
context:
space:
mode:
authortv <tv@xso>2011-09-09 22:54:46 +0200
committertv <tv@xso>2011-09-09 22:54:46 +0200
commit505848a38ef8a755e0c2644d2502ddbc1d4d478a (patch)
tree3532cc10fb649ff6a19ad035800c9651889d4a99 /Reaktor/commands/uptime
parente0bd5b4c964dd6db325f4582aa1b73c34575db4b (diff)
//Reaktor/commands/uptime: initial commit
Diffstat (limited to 'Reaktor/commands/uptime')
-rwxr-xr-xReaktor/commands/uptime7
1 files changed, 7 insertions, 0 deletions
diff --git a/Reaktor/commands/uptime b/Reaktor/commands/uptime
new file mode 100755
index 00000000..def9bf4f
--- /dev/null
+++ b/Reaktor/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/
+'