`

linux 一些文件处理脚本

阅读更多

提取ip地址列表:

cat file.txt |grep -Eo '([0-9]{3}).([0-9]{1,3}).([0-9]{1,3}).([0-9]{1,3})'

 

删除重复行:

sort -n test.txt | uniq

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics