Tugger the SLUGger!SLUG Mailing List Archives

Re: [SLUG] Tuesday afternoon shell command optimisation party!


This one time, at band camp, Jeff Waugh wrote:
><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. ;-)

Thanks for the concession :)