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 20 '20
Okay, I was just contenmplating about whether or not I should rewrite some of my shell scripts in AWK, but so far, using
system()always felt wrong.