memstat (242B)
1 #!/usr/bin/env bash 2 printf "hogs\n\n" 3 procmem | tail -n20 | nfmt 4 all=$(procmemall) 5 arc=$(arcsize) 6 total=$(($all + $arc)) 7 printf "\nproc %s" "$(nfmt <<<$all)" 8 printf "\narc %s" "$(nfmt <<<$arc)" 9 printf "\ntotal %s\n" "$(nfmt <<<$total)"