bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: awk 3.1.3 very slow


From: Stepan Kasal
Subject: Re: awk 3.1.3 very slow
Date: Fri, 20 Aug 2004 11:19:23 +0200
User-agent: Mutt/1.4.1i

Hello,

On Thu, Aug 19, 2004 at 10:32:20AM +0200, Stefan Fink wrote:
> very slow in 3.1.3 - fast in 3.1.1
> ------------------
> echo "10.08.04 12:46:27 uk:/home/uk/cm_cfg.shost/makro/local/elektro/scc" | 
> awk -F: '{ print $3; exit }' | awk '{ print $NF; exit }'
> 
> fast in 3.1.3 - fast in 3.1.1
> --------------
> echo "10.08.04 12:46:27 uk:/home/uk/cm_cfg.shost/makro/local/elektro/scc" |
> awk -F: '{ pos=index($3," "); print substr($3,pos+1); exit }'

well, using one awk instead of pipe of two is always good. But that's not
what you meant.

Perhaps it might be caused by the old problems with unicode.
Could you try
        export LC_ALL=C
(it's a good habit to reset locale at the begining of each shell script,
anyway).

HTH,
        Stepan Kasal




reply via email to

[Prev in Thread] Current Thread [Next in Thread]