怎么在ubuntu上编写如下命令:
if (netstat flag ==UG ) thene addres ip > new file
我想要的文件包含:
addres ip 152.123.12.1 123.12.12.123 . .