News for hackers. Stuff that matters.
Re:Learn to use Awk with hundreds of examples by jstimpfle on Wednesday October 25, 2017 @09:25AM (#15549864)
The advantage of awk is that it is faster in some cases and a little more convenient for simple command-lines due to automatic field splitting. The disadvantage is that it swallows errors silently even more than perl (I think).
Re:Learn to use Awk with hundreds of examples by augustk on Wednesday October 25, 2017 @10:30AM (#15550398)
Awk is also a part of POSIX.
Re:Learn to use Awk with hundreds of examples by tmaly on Wednesday October 25, 2017 @10:29AM (#15550383)
yes I agree, I have seen awk perform faster in some cases, but for the general case, I prefer something a little more flexible like Perl
Re:Learn to use Awk with hundreds of examples by Annatar on Wednesday October 25, 2017 @10:28AM (#15550375)
I'd say that AWK's single weakness is a lack of built-in debugger or even `set -x` tracing mode like the shell has.
Re:Learn to use Awk with hundreds of examples by mathiasrw on Wednesday October 25, 2017 @10:48AM (#15550571)
If you have access to npm in your environment then try rexreplace next time.