Using output of awk to run command

前端 未结 3 1748
终归单人心
终归单人心 2021-02-05 02:39

I am brand new to shell scripting and cannot seem to figure out this seemingly simple task. I have a text file (ciphers.txt) with about 250 lines, and I would like to use the fi

3条回答
  •  情话喂你
    2021-02-05 03:18

    Use system from within awk:

    awk '{ system("openssl s_client -connect host:port -cipher " $1) }' ciphers.txt
    

提交回复
热议问题