all-- if i have a simple awk script like
# sum last word { total += $NF } END { print total } that sums the last word of each line (if it's numeric), how can i feed it a range of lines and read the sum in after the end? reading the help it appeared i could enter :5,9r!awk -f ~/sumlw.awk to read in the sum, but this hangs and i have to ctrl-c it to regain control the awk works fine on the [bash] commandline, but i have to use the appropriate head and tail to get the desired range, then copy the sum back into my buffer any help will be appreciated sc -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php