How to execute (./myscript) inside awk or bash script?

前端 未结 3 1335
逝去的感伤
逝去的感伤 2021-01-23 09:39

I would like to run a script within an awk command. I have a code ./myscript that calculates the likelihood between two entities; the results are listed in listfile.txt.

3条回答
  •  青春惊慌失措
    2021-01-23 10:42

    Use awk's system function. The return value is the exit code.

    !($8 >= 0 && $8 <= 0.05) { system("./myscript") }
    

提交回复
热议问题