From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078620310570.tru64-unix-managers.marc@archive.invalid> From: Paul Kitwin Date: Fri, 19 Dec 1997 19:37:48 +0000 To: tru64-unix-managers Subject: Output adding X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078620310570 I am trying to create a monitoring script that will keep track of actual memory use per user. So far I have ps -el > /tmp/mem.tmp MEMM=`grep USER /tmp/mem.tmp | cut -b 45-90 | grep M | cut -b 1-4` MEMG=`grep USER /tmp/mem.tmp | cut -b 45-90 | grep G | cut -b 1-4` rm /tmp/mem.tmp echo $MEMM echo $MEMG This gives me 2 strings of numbers. What I want to do next is add these strings of numbers to get a Mb count and a Gb count. Than multiply the Gb to convert to Mb than add the two values to see what an individual user is actually using for memory. My question is, how to I add the strings of the output of $MEMM and $MEMG? TIA Put down the mouse, and step away from the keyboard. . .