例如查看网络连接情况 netstat -tun | awk '{ print $0"\t" strftime("%Y-%m-%d_%H:%M:%S",systime()) } ' 后面的awk,可以在文本后显示出时间