table of contents
other versions
- bullseye 1.4.6+really1.4.2-2
- bullseye-backports 1.6.2-1~bpo11+1
- testing 1.6.10-1
- unstable 1.6.10-2
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, -f
- find the pattern (default)
- --replace, -!
- replace the pattern
- --peg
- pattern is a peg
- --re
- pattern is a regular expression (default)
- --rex, -x
- use the "extended" syntax for the regular expression so that whitespace is not significant
- --recursive, -r
- process directories recursively
- --follow
- follow all symlinks when processing recursively
- --confirm
- confirm each occurrence/replacement; there is a chance to abort any time without touching the file
- --stdin
- read pattern from stdin (to avoid the shell's confusing quoting rules)
- --word, -w
- the match should have word boundaries (buggy for pegs!)
- --ignoreCase, -i
- be case insensitive
- --ignoreStyle, -y
- be style insensitive
- --ext:EX1|EX2|...
- only search the files with the given extension(s), empty one ("--ext") means files with missing extension
- --noExt:EX1|...
- exclude files having given extension(s), use empty one to skip files with no extension (like some binary files are)
- --includeFile:PAT
- include only files whose names match the given regex PAT
- --excludeFile:PAT
- skip files whose names match the given regex pattern PAT
- --excludeDir:PAT
- skip directories whose names match the given regex PAT
- --nocolor
- output will be given without any colours
- --color[:always]
- force color even if output is redirected
- --colorTheme:THEME
- select color THEME from 'simple' (default), 'bnw' (black and white) ,'ack', or 'gnu' (GNU grep)
--afterContext:N,
- -a:N
- print N lines of trailing context after every match
--beforeContext:N,
- -b:N
- print N lines of leading context before every match
- --context:N, -c:N
- print N lines of leading context before every match and N lines of trailing context after it
- --group, -g
- group matches by file
- --newLine, -l
- display every matching line starting from a new line
- --verbose
- be verbose: list every processed file
- --filenames
- find the pattern in the filenames, not in the contents of the file
- --help, -h
- shows this help
- --version, -v
- shows the version
REPORTING BUGS¶
SEE ALSO¶
The nim-doc package.
May 2021 | nimgrep 1.4.6+really1.4.2-2 |