shell script to check memory