3 ms·
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
by jstimpfle 9y ago
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).
- Annatar 9y agoI'd say that AWK's single weakness is a lack of built-in debugger or even `set -x` tracing mode like the shell has.
- tmaly 9y agoyes 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
- augustk 9y agoAwk is also a part of POSIX.
- mathiasrw 9y agoIf you have access to npm in your environment then try rexreplace next time.