That's excellent! Each person who responded came up with their own way of
accomplishing this... AppleScript, command line script, and Services menu.
Pretty cool. I tried the Perl script method and can confirm that it works. I
assigned it a keystroke, and I'm in business.

Thanks a lot!!

Scott





On 10/17/06 1:06 PM, Adrian Howard at [EMAIL PROTECTED] wrote:

> 
> On 17 Oct 2006, at 17:38, <[EMAIL PROTECTED]>
> <[EMAIL PROTECTED]> wrote:
> 
>> I'm looking for an easy way to total a column of numbers in a
>> fragment of a
>> large text file. Normally I copy the text file into BBEdit, use
>> option-select to select just the column of numbers, and then I
>> paste them
>> into Excel where I type in a formula to sum everything up.
>> 
>> Does anyone know of a way that I could possibly sum the numbers
>> right within
>> BBEdit, after selecting the column? Would this be easy to do with
>> AppleScript?
> 
> I have this little perl snippet
> 
> ---
> #! /usr/bin/perl
> use List::Util qw( sum );
> print sum( <> );
> ----
> 
> as a Unix filter which I think does what you want. Option-select the
> numbers then run the filter should get you the sum.
> 
> Adrian



-- 
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to