Answer the question
In order to leave comments, you need to log in
How to fold in bash?
I have a line in the script that calculates how much memory a certain user occupies:
ram=`ps -u $ID --no-headers -o rss`
The ram variable gets:
echo $ram
29448
18128
61672
29116
35376
How can I add these numbers correctly?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question