I need a simple working example that makes me understand
1, awk command in shell script. 2, awk withing awk command in shell script.
I need a simple working example that makes me understand
1, awk command in shell script. 2, awk withing awk command in shell script.
I'm not really sure what the point is, but here's awk calling awk from within a shell script...
#!/bin/sh
cmd='BEGIN {print \"foo\"}'
echo foo |
awk "{ system( \"awk '$cmd'\" )}"