leftwm-themes/scripts/getram

3 lines
76 B
Bash
Executable File

#!/bin/sh
printf "%.0f\n" $(free -m | grep Mem | awk '{print ($3/$2)*100}')