lijunhao189
2018-12-10 08:25linux shell如何根据截取某个字段多少位进行去重?
10想使用linux shell对一个文本文件中某个字段截取前特定位数,然后去重,比如
25ds51dd225d86af,20180725115911,22570,20443,120.17138,30.119047
002a51dd225d86af,20180725120017,22570,184680195,120.176506,30.11527
002a51dd225d86af,20180725120058,22290,80489347,120.1810786,30.10003
002a51dd225d86af,20180725120149,22290,80489345,120.1810786,30.10003
002a51dd225d86af,20180725120209,22290,189880577,120.18859,30.093405
102a51dd225d86af,20180725120239,22290,155606668,120.1990471,30.0961
002a51dd225d86af,20180725120303,22290,155606666,120.1990468,30.0961
002a51dd225d86af,20180725120434,22290,193501442,120.220661,30.09723
002a79ded185cb04,20180725125428,22570,185263107,120.1576002,30.1293
002a79ded185cb04,20180726125649,22290,80489347,120.1810786,30.10003
,如何根据第一个字段、第二个字段截取前8位进行排序去重?
- 点赞
- 回答
- 收藏
- 复制链接分享
3条回答
为你推荐
- 在GoLang中执行bash shell函数?
- shell
- bash
- 2个回答
- linux中shell脚本可以这样写判断逻辑吗?
- linux
- 2个回答
- linux shell 编程,第一行起什么作用?
- linux
- bash
- 2个回答
- Linux中shell脚本怎样实现遍历某个目录,并实现对该目录下文件与目录的分类统计
- 遍历
- linux
- shell
- 5个回答
- Linux shell上如何变量相加
- linux
- shell
- 脚本
- 3个回答
换一换