- To: Penguinillas <slug@xxxxxxxxxxx>
- Subject: Re: [SLUG] Tuesday afternoon shell command optimisation party!
- From: "Lindsay Holmwood" <lindsay@xxxxxxxxxxxxxx>
- Date: Tue, 18 Dec 2007 16:39:25 +1100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=wftK4s7mWbLNpNfinxq+CzqqTD2bjNRjOedR2Mkx/oI=; b=b3aeqGtD7E0BAVO0Ffq3o7SW0L6UCPQbJbdDTh0keueqnRrcWyIdE80yIe3Dmoaa8JuShat/ObH03yGrkUbhh7zZ7KCxdfCALbMvV/esysvXwdmlQo8KNSvkJtI7oXXje5cgnyHCLy7pPywXNgEiEjB+pnPavrqoeO6DNtl9jdo=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=VEk8mZgc5Gna6biMEbHo9ON2h9fV83ZPwTfBfswwG3gA128gHOQ0i7FMSpZxkEuzsVYmRzJAAcNHtir8EO2Wcco/GZA3AQad6c9dEYN9A6/PuJTX8wrnj0aekTg+Ixl1JHa1g7K8zGh+5m+Os4Ja4DnwvMv+JBe2wcowASOEkEA=
On Dec 18, 2007 4:35 PM, Martin Visser <martinvisser99@xxxxxxxxx> wrote:
> perl -e 'while(<>){$a+=s/[,]//g};print "$a\n"' <input.txt
>
> Do I win??
No. Ironically, your solution is 3 characters longer. :-)
Lindsay
--
http://slug.org.au/ (the Sydney Linux Users Group)
http://holmwood.id.au/~lindsay/ (me)