On 29.05.2012 11:52, Stefan Seyfried wrote:
Am 29.05.2012 11:16, schrieb Karl Eichwalder:
A grep and 2 cut commands? That's asking for awk (assuming that awk is available in your enviroment:
awk? which one? I recently got bitten by that one...
And (at least g)awk's startup time is almost as bad as perl's. So one
Try mawk, it's an order of a magnitude faster than gawk and can be configured as /bin/awk using update-alternatives.
grep and two cuts are probably still cheaper.
If you use a modern shell such as bash or ksh93 with built-in support for regexes neither of them should be ever needed. -- Guido Berhoerster -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org