#!/bin/sh # Memory usage free --mega | LC_ALL=C awk '/^Mem:/ {printf "%.1f GB of %.1f GB (%.0f%%)\n", $3/1000, $2/1000, ($3/$2)*100}'