Last active
November 5, 2021 14:13
-
-
Save redsfyre/98545ed291a317816309e5b8c6392e89 to your computer and use it in GitHub Desktop.
The command that gives the memory usage of the named application in mb (WIP)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
appname= XX; | |
for line in $(ps -e -orss=,args= | sort -b -k1 -nr | grep $appname | cut -d' ' -f1); | |
do | |
declare -i mem; mem="$line/1024"; echo "$mem M"; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It works like sh*t;
(Firefox btw)