开发者

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'\" )}"
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜