Welcome 微信登录

首页 / 操作系统 / Linux / CentOS6.2下ifconfig输出网口和ip

说明:蓝色=命令名称      浅绿=命令参数      浅蓝=选项      紫色=目录      系统环境:CentOS  6.2  i686 内容如下:650) this.width=650;" border=0>注: 此内容为ifconfig,ip不宜外泄,故输出于test文件修改为普通ip要求:输出内容为 virbr0 192.168.122.1sed方法:sed -n "/^[^ ]/{N;s/(^[^ ]*).*addr:([0-9.]+).*/1 2/p}" test 650) this.width=650;" border=0> awk方法: awk  "/^[^ ]/{a=$1;getline;b=substr($2,6);if(b~/^[0-9]/) print a,b}" test650) this.width=650;" border=0>CentOS 6 Setup 安装CentOS教程:根据文件名长度输出相关资讯      CentOS教程 
  • CentOS上使用Dropbox  (02/07/2013 09:11:47)
  • CentOS 网络设置修改  (02/04/2013 21:28:42)
  • CentOS如何安装whois命令  (01/20/2013 14:33:29)
  • CentOS 下修改/dev/shm 大小解决  (02/04/2013 21:30:15)
  • CentOS 注销在线用户, Linux 注销  (02/04/2013 21:24:06)
  • CentOS安装完重启后不能进入终端  (01/02/2013 16:04:02)
本文评论 查看全部评论 (0)
表情: 姓名: 字数