I would like to calculate the percentage of free memory using Linux bash shell scipts.
Example:
bash-4.1$ free
total used free shared buffers cached
Mem: 12223100 11172812 1050288 316 714800 629944
-/+ buffers/cache: 9828068 2395032
Swap: 6266872 5852824 414048
Ex. (1050288/12223100) * 100 = %free memory-I want to do this using scripts.
Thanks Puspa