Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Awk > Re: Duplicated ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 8 of 8 Topic 2180 of 2236
Post > Topic >>

Re: Duplicated output with no condition (easy one)

by Lorenz <lorenznl@[EMAIL PROTECTED] > Mar 7, 2008 at 02:32 PM

Atropo wrote:
>Lorenz wrote:
>> >ls -ltr|awk 'split($8,a,":");t=t+a[2] END {print t,NR ,t/NR }'
>>
>> what you have here is three rules whereof two have no explicit action.
>> That is equivalent to:
>>
>>         ls -ltr|awk 'split($8,a,":") {print} \
>>                                t=t+a[2] {print} \
>>                                END {print t,NR ,t/NR }'

what I showed here is the equivalent of your original statement awk
interprets it.

I did not give THE SOLUTION for your problem, as I didn't know exactly
what you wanted to do.
-- 

Lorenz




 8 Posts in Topic:
Duplicated output with no condition (easy one)
Atropo <lxvasquez@[EMA  2008-03-06 13:45:07 
Re: Duplicated output with no condition (easy one)
Atropo <lxvasquez@[EMA  2008-03-06 14:00:25 
Re: Duplicated output with no condition (easy one)
ptjm@[EMAIL PROTECTED] (  2008-03-07 04:32:59 
Re: Duplicated output with no condition (easy one)
Lorenz <lorenznl@[EMAI  2008-03-07 06:53:20 
Re: Duplicated output with no condition (easy one)
Atropo <lxvasquez@[EMA  2008-03-07 04:11:46 
Re: Duplicated output with no condition (easy one)
Ed Morton <morton@[EMA  2008-03-07 07:23:12 
Re: Duplicated output with no condition (easy one)
gazelle@[EMAIL PROTECTED]  2008-03-07 13:33:43 
Re: Duplicated output with no condition (easy one)
Lorenz <lorenznl@[EMAI  2008-03-07 14:32:57 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat May 17 0:19:35 CDT 2008.