Skip to content

karelk/paragrep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 

Repository files navigation

paragrep

Paragrep works like grep, but instead of printing matching line, it prints matching paragraph. By default, paragraphs are separated by empty line, but custom delimiter can be specified.

Command line options are similar to grep:

 paragrep [-A num] [-B num] [-C num] [-F] [--color] [-c] [--delimiter='string'] [-i] [-l] [-n] [-r] [-s] [-v] [-w] pattern FILE [FILE ...]

Example usage

 paragrep eth0 /etc/network/interfaces

 paragrep -r 'Directory' /etc/apache2/sites-enabled/

 dmidecode | paragrep -i cpu

 lspci -v | paragrep iwlwifi

About

Print paragraph matching a pattern. Similar to grep, but acts on paragraphs instead of lines.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages