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 :) -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
