使用sed过滤IP地址信息

[admin@w ~]$ ifconfig eth0 |grep 'inet '|sed 's/inet//g' |sed 's/netmask.*$//g'

你可能感兴趣的:(sed,tcp/ip,网络)