2019-07-07 11:00:39 +02:00
|
|
|
#!/bin/bash
|
|
|
|
function hddUsage {
|
|
|
|
df --output=pcent $hdd | tail -1 | grep -Po "(\\d+)" --color=never
|
|
|
|
}
|
|
|
|
|
|
|
|
function hddTop {
|
2021-08-11 15:54:41 +02:00
|
|
|
du -hd 3 / --exclude="/proc" --exclude="/media" --exclude="/mnt" --exclude="/usr/local/bin/dchub/share" | sort -hr | grep -E "/.*/.*/" | head -n 3 | sed -e 's/\t/%20/g; s:/:%2F:g; a%0A' | sed -e '1i \%0A' | tr -d '\n'
|
2019-07-07 11:00:39 +02:00
|
|
|
}
|