Calculating the sum and average for a list of values calculating the sum of values, calculating the average of values, sum and average
Many UNIX tools return the memory consumtion for each process in kilobytes, pages and so on.
Composing a bit more complicated command using tools like awk, and grep can give you a column with numbers => meaning the number of kilobytes/pages for each process. In case you need to calculate the sum of all these numbers, here's how to do it:
Calculating the sum and average for a list of values
Designed and developed by Andrei Manescu. Optimized for Mozilla Firefox.
Copyright 2007 Andrei Manescu
All trademarks and copyrights on this page are owned by their respective owners. Comments are owned by those who posted them.