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