bar-memory.sh 120 B

123456
  1. #! /bin/bash
  2. set -euo pipefail # bash strict mode
  3. mem="$(free -h | awk '/^Mem:/ {print $3 "/" $2}')"
  4. echo "${mem} RAM"