<quote who="Robert Thorsby">

> >   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

Close in what sense, the syntax error, the length, or the output? ;-)

- Jeff

-- 
GNOME.conf.au 2008: Melbourne, Australia http://live.gnome.org/Melbourne2008
 
   I used the word 'infrastructure' when describing her cooking style...
                   and she didn't speak to me for a week.
-- 
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