On 18/12/07 16:50:17, Jeff Waugh wrote:
> > Something like the following might be close:
> > awk 'BEGIN{FS=","}{$0~",$":i=i+NF?i=i+NF-1}END{print(i)}' input.txt
>
> Close in what sense, the syntax error, the length, or the output? ;-)
>
> - Jeff
Syntax error granted -- just keeping you on your toes :-) But, at
least, it only uses one process (what ain't perl).
Robert
Testing? What's that? If it compiles, it is good,
if it boots up it is perfect. -- Linus Torvalds
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html