Go sift grep 的开源替代品 Go sift

agolangf2016-09-07 16:06:27 • 1851 次点击    
这是一个分享于 2016-09-07 16:06:27 的项目,其中的信息可能已经有所发展或是发生改变。

sift 是快速强大的 grep 开源替代品,作为一个单独的可执行程序,没有外部依赖,下载即用。sift 非常灵活,速度非常快,支持多行匹配,条件和多核。

sift 主要特性:

  • 速度快
  • 无需安装,下载即用
  • 灵活,包含 grep 所有你需要的特性
  • 使用条件

示例数据:

<?xml version="1.0"?>
<catalog>
<book id="bk101">
  <author>Gambardella, Matthew</author>
  <title>XML Developer's Guide</title>
  <genre>Computer</genre>
  <price>44.95</price>
  <publish_date>2000-10-01</publish_date>
  <description>An in-depth look at creating applications with XML.</description>
</book>
<book id="bk102">
  <author>Ralls, Kim</author>
  <title>Midnight Rain</title>
  <genre>Fantasy</genre>
  <price>5.95</price>
  <publish_date>2000-12-16</publish_date>
  <description>A former architect battles corporate zombies,
  an evil sorceress, and her own childhood to become queen
  of the world.</description>
</book>
...

image

A fast and powerful alternative to grepRead More

Latest commit to the master branch on 3-1-2022
Download as zip
授权协议:
GPLv3
开发语言:
Google Go 查看源码»
操作系统:
跨平台
1851 次点击  
加入收藏 微博
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传