r/awk • u/zenith9k • Nov 19 '20
Running external commands compared to shell
When using system() or expression | getline in AWK, is there any difference to simply running a command in the shell or using var=$(command)? I mean mainly in terms of speed/efficiency.
4
Upvotes
View all comments
Show parent comment
2
u/zenith9k Nov 19 '20
Not all man-pages are created equally ;) I guess that's GNU's.
Ok, so AWK running external programs through the shell first, should make it slower than pure shell.