Help! I have just started to work on a project that requires simple functions, but I'm not very familiar with linux or any programming languages. Could someone give me some help with simple arithmetic functions? I need to average some data and I know what I need to do, but I don't know how. I need to add up the times in column 3 and divide by the number of lines. The data looks like this:
The first column is user id and process id, the second is the keystroke number, and the third is time in seconds. Could someone help me out with this? Thanks.