mirror of
https://github.com/notwa/rc
synced 2024-11-05 00:29:02 -08:00
6 lines
133 B
Text
6 lines
133 B
Text
|
#!/bin/sh
|
||
|
expac -s '%m %n' | awk '
|
||
|
{t+=$1;printf("%8.2fM %s\n",$1/(1024*1024),$2)}
|
||
|
END{printf("%8.2fM\n",t/(1024*1024))}
|
||
|
' | sort -n
|