#!/bin/bash cat /proc/meminfo | awk ' /MemTotal:/ { print int($2/1048576) ; exit }'