<quote who="Jamie Wilkinson">

> >  sed 's#[^,]*##g' input.txt | tr -d '\n' | wc -m
> >
> >Tuesday afternoon shell optimisation party!
> 
> You want to count the total number of characters in a file, not including
> newlines, that are on lines that don't start with a comma.

That's an... interesting... reading of the command. Clearly this should be a
Tuesday afternoon only activity rather than a Tuesday-almost-Wednesday after
a few drinks activity. ;-)

> Does it have to be in shell? :-)

No sir! But shell usually wins.

- Jeff

-- 
GNOME.conf.au 2008: Melbourne, Australia http://live.gnome.org/Melbourne2008
 
                 ASCII stupid question, get a stupid ANSI.
-- 
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