SLUG Mailing List Archives
Re: [SLUG] Tuesday afternoon shell command optimisation party!
- To: slug@xxxxxxxxxxx
- Subject: Re: [SLUG] Tuesday afternoon shell command optimisation party!
- From: Jamie Wilkinson <jaq@xxxxxxxxxxxxxx>
- Date: Thu, 20 Dec 2007 21:20:21 +1100
- User-agent: Mutt/1.5.17 (2007-11-01)
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 :)