I have a file, which looks like:
Lorem ipsum dolor sit amet... 2465m id porttitor libero mauris at magna... 1m istique pretium tincidunt. V...1200m ... I want to calculate (using unix commands, awk, grep etc.) sum of trailing number, I mean (2465 + 1 + 1200 + ...) / NUMBER_OF_LINES. What is the best way to do that?
foo...bar... foo200m? I mean non-blank char before the first digit?