Hello,
I'm sure this is an easy one for someone.
I have a network device log file that has the number of concurrently logged on users at the end of some of the log file lines. Using AWK, grep, and sort, I'm able extract just the numeric information I want and redirect it to a text file. What I'd like to do is to determine the mean, median, and mode from the set of numbers in the text file. The data in the text file is sorted by number and consists of one number per line (and there is nothing but a number on each line). What would be an easy way to do this (I'm only looking for how to read data from a textfile and then work with it using math functions, and not how to find the mean, median, and mode from a set of numbers
)
Thanks in advance