So, from my log file, I processed some string and finally got this result in, let's say buffer name "1"
12
23
34
45
How can I get a sum of a given buffer?
(defun sum-of-buffer (buf)
(interactive "bBuffer Name: ")
....
(message "%i" sum))
Or is there a convenient function combination?
How about using
calc
-- select the region in the shape of a rectangle -- and type:C-u C-x * :
Alternatively, how about?: