#!/bin/sh memory=$(free -h | awk '/Mem/ {printf "%s/%s\n", $3, $2}' | sed 's/Gi/G/g; s/Mi/M/g') printf '[MEM %s]\n' "$memory"