I have this file:
Took: 15.473214149475098 seconds
Took: 12.94953465461731 seconds
Took: 2.235722780227661 seconds
Took: 40.53083419799805 seconds
Took: 21.840606212615967 seconds
Took: 35.777870893478394 seconds
Took: 13.153780221939087 seconds
Took: 2.966165781021118 seconds
Took: 35.54965615272522 seconds
I would like to compute the mean and std of the times directly in the terminal. Can awk
help ? I am not very familiar with it. I tried splitting the file to get the column with the numerical values only this way :
cat <filename> | awk -F "Took:" {print$2}
but it just returned the whole content of the file.