diff --git a/roles/mgrote.install_packages/templates/systemtemps.sh b/roles/mgrote.install_packages/templates/systemtemps.sh index 449ad12c..2a5abf23 100644 --- a/roles/mgrote.install_packages/templates/systemtemps.sh +++ b/roles/mgrote.install_packages/templates/systemtemps.sh @@ -1,2 +1,2 @@ #!/bin/bash -watch --interval 10 --differences --color --no-title "ipmitool sensor | cut -d '|' -f 1-3 | grep -i "degrees" | sort -k2 -r | sed -r 's/degrees C/°C/'" +sudo ipmitool sensor | cut --delimiter '|' -f 1-3 | grep -i "degrees" | sort -k2 -r | tr --delete "|" | tr --squeeze-repeats " " | sed -r 's/(degrees C)/°C/g;s/([[:alnum:]]+[[:space:]][[:alpha:]]+ )([[:digit:]]+\.[[:digit:]]+ )(°C)/\2\t\3\t\1/g' diff --git a/roles/mgrote.zfs_tools/templates/zfs-free.sh b/roles/mgrote.zfs_tools/templates/zfs-free.sh index 3f0be813..d4f45ad8 100644 --- a/roles/mgrote.zfs_tools/templates/zfs-free.sh +++ b/roles/mgrote.zfs_tools/templates/zfs-free.sh @@ -1,2 +1,2 @@ #! /bin/bash -watch --interval 60 --differences --color --no-title "zfs list -o space | grep -v /" +watch --interval 60 --differences --color --no-title "sudo zfs list -o space | grep -v / | tr -s ' ' | cut --delimiter=' ' --fields=1-3 | sed -r 's/\s/\t\t/g;s/NAME/NAME\t/g'"