High CPU Usage Script

#!/bin/bash
2while [ true ] ;do
3used=`free -m |awk 'NR==3 {print $4}'`
4 
5if [ $used -lt 1000 ] && [ $used -gt 800 ]; then
6echo "Free memory is below 1000MB. Possible memory leak!!!" | /bin/mail -s "HIGH MEMORY ALERT!!!" user@mydomain.com
7 
8 
9fi
10sleep 5

11done