[TOOL] Shell Check Memory Usage (15 seconds each time, 100 times in total)

#!/bin/bash
#Author: Mingyu Zhu
#Name: view the process using swap
#Function: view the process using swap


#Usage:
#1. Add execution permission to this script
#2. Execute the script

i=1
while [ $i -le 100 ]
do free -m
sleep 15
let i=i+1
done