【linux学习笔记】 sort
来源:互联网 发布:网络通信加密系统 编辑:程序博客网 时间:2024/04/28 00:59
1.对用冒号:分隔的第二列升序排序:
Sort a colon delimited text file on 2nd field (employee_id):
$ sort -t: -k 2 employee.txt
2.对IP地址排序:
参考1:http://cosy.univ-reims.fr/~bhaggar/doc/Linux-101-Hacks.pdf
参考2:http://www.madboa.com/geek/sort-addr/
fields set apart from the others by a dot (-t .). Sort first by the first field, and only the first field (-k 1,1), then by the second and only the second (-k 2,2), and so on (-k 3,3 -k 4,4).”
- 【linux学习笔记】 sort
- sort 学习笔记
- STL sort学习笔记
- sort、uniq学习笔记
- C++学习笔记----sort(),
- STL学习笔记-sort
- Linux学习笔记7 cut,sort,uniq,wc,tr
- Linux sort命令学习
- Linux命令学习:sort
- Perl学习笔记之Sort
- Algorithms 学习笔记04 Sort
- 学习笔记-MATLAB的sort
- js学习笔记之sort
- 【linux学习笔记】sort|uniq | cut | wc (我的第一篇markdown笔记)
- linux 命令学习之 sort
- Linux学习笔记(二) - sort,uniq,cut,wc 命令详解
- QT学习笔记之四 Sort
- BASH学习笔记——sort
- 相对布局中取值为其他控件id 的属性及说明
- Yii 学习笔记 (Model篇)
- 要获取Android手机的IP地址
- php连接mysql服务器速度慢的原因和解决方法
- EAGAIN、EWOULDBLOCK、EINTR与非阻塞 长连接
- 【linux学习笔记】 sort
- mac 常用快捷方式
- encodeURI 编码、decodeURI 解码
- 解决方案:android系统上不同分辨率的兼容问题
- 常用关于查询oracle用户系统权限
- App调试的几个命令
- struct的sizeof的大小决定的情况
- Andengine配置说明(图文版)
- JavaBean反射