Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- prog=chrome
- s=0;
- for i in `pgrep "$prog"`;
- do n=`pmap -x $i | grep total | sed 's/[ /\t]\+/;/g' | cut -d ";" -f 5`; s=$((s+n));
- done;
- numfmt --to=iec-i --suffix=B --from-unit=1024 $s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement