sobering observation, python vs. perl
Marko Rauhamaa
marko at pacujo.net
Thu Mar 17 11:48:54 EDT 2016
"Charles T. Smith" <cts.private.yahoo at gmail.com>:
> On Thu, 17 Mar 2016 15:29:47 +0000, Charles T. Smith wrote:
>
> And for completeness, and also surprising:
>
> time sed -n -e '/ is ready/{s///;h}' -e '/release_req/{g;p}' *.out | sort -u
> TestCase_F_00_P
> TestCase_F_00_S
> TestCase_F_01_S
> TestCase_F_02_M
>
> real 0m10.998s
> user 0m10.885s
> sys 0m0.108s
>
> Twice as long as perl... I guess there's no excuse for sed anymore...
Try running the sed command again after setting:
export LANG=C
Marko
More information about the Python-list
mailing list