summaryrefslogtreecommitdiff
path: root/sb-hdspace
diff options
context:
space:
mode:
Diffstat (limited to 'sb-hdspace')
-rwxr-xr-xsb-hdspace7
1 files changed, 7 insertions, 0 deletions
diff --git a/sb-hdspace b/sb-hdspace
new file mode 100755
index 0000000..2a90d34
--- /dev/null
+++ b/sb-hdspace
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+# row from df-h input v
+hd_space="$(df -h | awk '(NR==4){print $4}')"
+# column from df -h output ^
+
+echo "$hd_space"