awk调用系统命令

cmd = ("the linux command")
cmd | getline dk;
close(cmd)

dk stores the output of the command.

原文地址:https://www.cnblogs.com/shalijiang/p/4604341.html