need example for awk command and awk within awk command in in shell script
I need a simple working example that makes me under开发者_C百科stand
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'\" )}"
精彩评论