commands.sh

vgrep

all

A user friendly pager for grep. See also: `ugrep`, `rg`.

More info →

Options (5)

-s, --showboolean

Open the "4th" match from the cache in the default editor

Example: vgrep {{[-s|--show]}} {{4}}
boolean

Display a context of "3" lines for each match in the cache

Example: vgrep {{[-s|--show]}} {{[c|context]}}{{3}}
boolean

Display the number of matches for each directory in the tree

Example: vgrep {{[-s|--show]}} {{[t|tree]}}
boolean

Display the number of matches for each file in the tree

Example: vgrep {{[-s|--show]}} {{[f|files]}}
-i, --interactiveboolean

Start an interactive shell with cached matches

Example: vgrep {{[-i|--interactive]}}

Examples (7)

Recursively search the current directory for a pattern and cache it

vgrep search_pattern

Display the contents of the cache

Open the "4th" match from the cache in the default editor

vgrep [-s|--show] 4

Display a context of "3" lines for each match in the cache

vgrep [-s|--show] [c|context]3

Display the number of matches for each directory in the tree

vgrep [-s|--show] [t|tree]

Display the number of matches for each file in the tree

vgrep [-s|--show] [f|files]

Start an interactive shell with cached matches

vgrep [-i|--interactive]
made by @shridhargupta | data from tldr-pages