some examples of awk & sed
来源:互联网 发布:大数据就是统计 编辑:程序博客网 时间:2024/06/07 11:43
/sbin/ifconfig | grep -E 'inet +addr:([0-9]+/.){3}' | awk '{print $2}' | awk -F":" '{print $2}'
192.168.1.100
/sbin/ifconfig | sed -n '/192/(/.[0-9]/+/)/{3/}/p'
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
/sbin/ifconfig | sed -n '/192/(/.[0-9]/+/)/{3/}/p' | awk '{print $2}' | awk -F":" '{print $2}'
192.168.1.100
/sbin/ifconfig | sed -n 's/.*inet addr:/(/([0-9]/+/./)/{3/}[0-9]/+/).*//1/p'
192.168.1.100
- some examples of awk & sed
- some examples of condensation
- Some Examples of PCIE Transactions
- Tricks of SED/AWK/GREP
- Some examples of BLAS and LAPACK calls from C++.
- sed awk ``````
- sed&&awk
- sed&awk
- sed awk
- sed & awk
- awk && sed
- sed awk
- sed,awk
- awk,sed
- sed、awk
- sed & awk --SED 入门
- Awk Tutorial Examples
- Useful One Line Programs of "SED" and "AWK"
- J2ME平台解析WAP网页
- 应网友要求易筋经联系一下
- Linux 脚本编写基础(六)
- 分布式程序对同一表进行操作时的sql
- 使用批处理删除注册表分支
- some examples of awk & sed
- VI键盘图
- 产品开发实录(1)——代码重构
- 几个常用的Win32 Api
- 文件操作
- VI中的替换
- 字符基础 ASCII,DBCS和Unicode
- C语言二进制文件读写
- Java Map 集合类简介