#!/bin/sh # colum of free -h v ram_used="$(free -h | awk '(NR==2){print $3}')" # row from free -h ^ echo "$ram_used"