DOKK / manpages / debian 11 / nim / nimgrep.1.en
NIMGREP(1) User Commands NIMGREP(1)

nimgrep - Nimgrep

nimgrep - Nim Grep Utility Version 1.5

(c) 2012 Andreas Rumpf

nimgrep [options] [pattern] [replacement] (file/directory)*

find the pattern (default)
replace the pattern
pattern is a peg
pattern is a regular expression (default)
use the "extended" syntax for the regular expression so that whitespace is not significant
process directories recursively
follow all symlinks when processing recursively
confirm each occurrence/replacement; there is a chance to abort any time without touching the file
read pattern from stdin (to avoid the shell's confusing quoting rules)
the match should have word boundaries (buggy for pegs!)
be case insensitive
be style insensitive
only search the files with the given extension(s), empty one ("--ext") means files with missing extension
exclude files having given extension(s), use empty one to skip files with no extension (like some binary files are)
include only files whose names match the given regex PAT
skip files whose names match the given regex pattern PAT
skip directories whose names match the given regex PAT
output will be given without any colours
force color even if output is redirected
select color THEME from 'simple' (default), 'bnw' (black and white) ,'ack', or 'gnu' (GNU grep)

--afterContext:N,

print N lines of trailing context after every match

--beforeContext:N,

print N lines of leading context before every match
print N lines of leading context before every match and N lines of trailing context after it
group matches by file
display every matching line starting from a new line
be verbose: list every processed file
find the pattern in the filenames, not in the contents of the file
shows this help
shows the version

https://github.com/nim-lang/Nim/issues

The nim-doc package.

May 2021 nimgrep 1.4.6+really1.4.2-2