summaryrefslogtreecommitdiffstats
path: root/.local/bin/average-relative
blob: 3fb96bfa0f71c21c07317a0f76149fdc2ae386ab (plain) (blame)
1
2
3
4
5
6
7
#!/bin/sh

for i in *; do
	size=$(du -s "$i" | awk '{print $1}')
	count=$(find "$i" -type f -size +1M | wc -l)
	echo "$((size / count)) $count $size $i"
done | sort -nr