Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 5 lines (4 sloc) 168 Bytes
#!/bin/sh
memtotal=$(perl -ane'print $F[1] if /^MemTotal:/' /proc/meminfo)
memused=$(perl -ane'print $F[1] if /^Active:/' /proc/meminfo)
echo $(($memtotal - $memused))