From 811fa21a9df0c136cafab935b6882b7541a22203 Mon Sep 17 00:00:00 2001 From: David Runge Date: Fri, 11 Mar 2016 10:42:47 +0100 Subject: bin/get_*: Adding helper scripts to be used in tmux. --- bin/get_load | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 bin/get_load (limited to 'bin/get_load') diff --git a/bin/get_load b/bin/get_load new file mode 100755 index 0000000..7991d26 --- /dev/null +++ b/bin/get_load @@ -0,0 +1,8 @@ +#!/usr/bin/env bash +set -euo pipefail +IFS=$'\n\t' + +uptime_output=$(uptime| cut -d',' -f4,5,6|cut -d':' -f2) +uptime_output=${uptime_output#" "} + +echo "$uptime_output" -- cgit v1.2.3-70-g09d2