system("netstat -pa --unix 2>/dev/null| " "sed -n '/^Active UNIX/,/^Proto/p;" "/af_unix/p'");
将netstat查询到的网络状态重定向到/dev/null中,并对结果进行sed文本定位,匹配的是从以Active UNIX开头的行到以Proto开头的行,以及含有af_unix的行