#!/bin/sh MEMORY_USED=$(free -h | awk 'NR==2 {print $3}') echo $MEMORY_USED