On 18/12/07 16:32:03, Jeff Waugh wrote:
> That's part of the challenge.
> 
>   sed 's#[^,]*##g' input.txt | tr -d '\n' | wc -m

Something like the following might be close:

awk 'BEGIN{FS=","}{$0~",$":i=i+NF?i=i+NF-1}END{print(i)}' input.txt

Robert Thorsby
Old timers will tell you what a pain unstable was
during the new testament transition.
                -- Jon Corbet on Debian's KJV packages

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to