去重神器anew

admin 2024年4月22日03:01:39评论7 views字数 346阅读1分9秒阅读模式

项目地址
https://github.com/tomnomnom/anew

简介
anew是go语言编写的开源去重工具,小巧但很强大。可以自行编译或下载release版本。

使用案例

去重神器anew

cat newthings.txt | anew things.txt

anew会在命令行中输出things.txt中新增的字符串。
anew会比较newthings.txt和things.txt,并将二者合并去重后输出到things.txt。

cat newthings.txt | anew things.txt > added-lines.txt

去重神器anew

可选项
要在stdout中查看输出,但不附加到文件,请使用选项 -d。
要附加到文件,但不将任何内容打印到stdout,请使用安静模式 -q。

原文始发于微信公众号(进击的HACK):去重神器anew

  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
admin
  • 本文由 发表于 2024年4月22日03:01:39
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   去重神器anewhttp://cn-sec.com/archives/2631863.html

发表评论

匿名网友 填写信息