9103f39a983f

More
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Thu, 30 Jan 2020 18:06:36 -0500
parents 11c0531d51d5
children d4732eec7b9d
branches/tags (none)
files bin/disks gnuplot

Changes

--- a/bin/disks	Thu Jan 30 11:51:15 2020 -0500
+++ b/bin/disks	Thu Jan 30 18:06:36 2020 -0500
@@ -2,7 +2,15 @@
 
 set -euo pipefail
 
-lsblk -o name,mountpoint,model,label,size,fstype | egrep -v "^loop" 
+lsblk -o name,mountpoint,model,label,size,fstype | grep -Pv "^loop" | awk '
+NR>1 && /^[a-zA-Z]/ { print "-----------------------------------------------------------------------------------------------------------------------" }
+                    { print $0 }
+'
 echo
 echo
-df -h | egrep -v '^/dev/loop' | egrep -v tmpfs
+echo
+
+OUT=$(df -h)
+echo "$OUT" | head -1
+echo "$OUT" | head -1 | sed 's/./-/g'
+echo "$OUT" | tail +2 | grep -Pv '^/dev/loop' | grep -Pv tmpfs | sort -k6
--- a/gnuplot	Thu Jan 30 11:51:15 2020 -0500
+++ b/gnuplot	Thu Jan 30 18:06:36 2020 -0500
@@ -1,1 +1,9 @@
 set terminal qt noraise
+set samples 1000
+
+tau = 2 * pi
+e = 2.71828182845905
+r2 = sqrt(2.0)
+
+min(a, b) = (a<b) ? a : b
+max(a, b) = (a>b) ? a : b