#!/bin/bash icon="" mem="$(free -h | awk '/^Mem/ { print $3"/"$2 }' | sed s/i//g)" printf " %s %s \\n" "$icon" "$mem"