开发者

need example for awk command and awk within awk command in in shell script

开发者 https://www.devze.com 2023-02-27 04:39 出处:网络
I need a simple working example that makes me under开发者_C百科stand 1, awk command 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

精彩评论

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