使用linux命令直接截取ip地址

ifconfig |grep "inet"|awk -F "[: ]+" '{print $3}'|head -n1
相关文章
相关标签/搜索