I\'m typing a shell script to find out the total physical memory in some RHEL linux boxes.
First of all I want to stress that I\'m interested in the total ph
Total memory in Mb:
Mb
x=$(awk '/MemTotal/ {print $2}' /proc/meminfo) echo $((x/1024))
or:
x=$(awk '/MemTotal/ {print $2}' /proc/meminfo) ; echo $((x/1024))