bar-diskspace.sh 197 B

12345
  1. #!/usr/bin/env bash
  2. set -euo pipefail # bash strict mode
  3. mounted=$(df -h | egrep "home|mnt|sda" | grep -v boot | tr -s ' ' ';' |cut -d';' -f4,6 | tr -s ';' ' ' | tr -s '\n' '|')
  4. echo -e "$mounted"