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


|