← 返回
未分类

Grep Tool

Search text files for lines matching a pattern using regular expressions. Use for log analysis, code searching, and data filtering.
使用正则表达式在文本文件中搜索匹配的行。适用于日志分析、代码搜索和数据过滤。
dinghaibin dinghaibin 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 295
下载
💾 0
安装
1
版本
#latest

概述

Pattern Search Utility

Search through files and output lines matching a given pattern. Supports basic, extended, and Perl-compatible regular expressions.

Usage

grep-tool [options] <pattern> [file...]

Common Options

  • -i: Case-insensitive search
  • -r: Recursive directory search
  • -n: Show line numbers
  • -v: Invert match (show non-matching lines)
  • -c: Count matches instead of showing lines

Examples

# Case-insensitive search
grep-tool -i "error" log.txt

# Recursive search
grep-tool -r "function" ./src

# Count matches
grep-tool -c "TODO" *.py

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-08 01:24 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

it-ops-security

Schedule Task

dinghaibin
在 Linux/Unix 系统上调度和运行周期性任务。适用于设置 cron 作业、定时备份、周期性数据同步、自动报告等场景。
★ 0 📥 444
dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 195 📥 67,518
dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 677 📥 326,588