← Back to tools

paragrep

Grep regular expressions and print matching paragraphs

Search & Filter linuxmacos Python

Description

paragrep searches for regular expressions in text files and prints out the paragraphs containing those expressions. A paragraph is defined as a block of text delimited by an empty or blank line, and this is fully customizable via command line parameters.

When to use this tool

Good fit when
  • You want to see full paragraphs around matching text rather than just lines
  • You need context-aware text searching
Avoid when
  • You need line-level grep output

AI Summary

Search tool that matches regex patterns and outputs entire paragraphs containing matches

Capabilities

  • + Search for regex patterns in text files
  • + Output complete paragraphs containing matches
  • + Customize paragraph delimiters

Use When

  • You want to see full paragraphs around matching text rather than just lines
  • You need context-aware text searching

Avoid When

  • x You need line-level grep output

Related Tools

View AGENTS.md for paragrep