+ -
当前位置:首页 → 问答吧 → 如何删除最后三位数相同的数据

如何删除最后三位数相同的数据

时间:2011-03-16

来源:互联网

前段时间在论坛里见到过这样的帖子,很遗憾没记下来,希望大家给出解决方案,多谢。呵呵

作者: qpengf   发布时间: 2011-03-16

猜不出来,请你写一个例子吧

作者: greendays   发布时间: 2011-03-16

echo "123111
123456" |sed -r '/(.)\1\1$/d'
123456

作者: yinyuemi   发布时间: 2011-03-16

$ cat test
hello
haha
haaaa
345trss
moneyyy

$ sed -n '/^.*\(.\)\1\1$/!p' test
hello
haha
345trss

作者: fttskyblue   发布时间: 2011-03-16

热门下载

更多