Grep Tool

v1.0.0

Search text files for lines matching a pattern using regular expressions. Use for log analysis, code searching, and data filtering.

0· 35· 1 versions· 0 current· 0 all-time· Updated 7h ago· MIT-0

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

Version tags

latestvk97dretb2c1fwjddp1n5yaz6ad85qpsw