dotfiles/.local/scripts/9997_disk

7 lines
135 B
Bash

#!/bin/bash
used=$(df -h / | sed -n '1!p' | cut -d' ' -f22)
total=$(df -h / | sed -n '1!p' | cut -d' ' -f16)
echo "$used/$total"