Scroll to navigation

NIMGREP(1) User Commands NIMGREP(1)

NAME

nimgrep - Nimgrep

DESCRIPTION

nimgrep - Nim Grep Utility Version 1.5

(c) 2012 Andreas Rumpf

Usage:

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

OPTIONS

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

REPORTING BUGS

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

SEE ALSO

The nim-doc package.

August 2021 nimgrep 1.4.8-2