diff options
author | Araq <rumpf_a@web.de> | 2012-04-16 00:37:41 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-04-16 00:37:41 +0200 |
commit | 752cddb91a2df5e1cc6211aad337169acac9d7a7 (patch) | |
tree | 05750796bdf98374e2d1948ed3c72f527a81974f /doc/nimgrep.txt | |
parent | da9ff288d9ddb2f92bc8a82f859fc4f420102882 (diff) | |
download | Nim-752cddb91a2df5e1cc6211aad337169acac9d7a7.tar.gz |
documentation improvements
Diffstat (limited to 'doc/nimgrep.txt')
-rw-r--r-- | doc/nimgrep.txt | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/doc/nimgrep.txt b/doc/nimgrep.txt new file mode 100644 index 000000000..c231bf31b --- /dev/null +++ b/doc/nimgrep.txt @@ -0,0 +1,50 @@ +================================= + nimgrep User's manual +================================= + +:Author: Andreas Rumpf +:Version: 0.9 + + +Nimgrep is a command line tool for search&replace tasks. It can search for +regex or peg patterns and can search whole directories at once. User +confirmation for every single replace operation can be requested. + +Nimgrep has particularly good support for Nimrod's +eccentric *style insensitivity*. Apart from that it is a generic text +manipulation tool. + + +Installation +============ + +Compile nimgrep with the command:: + + nimrod c -d:release tools/nimgrep.nim + +And copy the executable somewhere in your ``$PATH``. + + +Command line switches +===================== + +Usage: + nimgrep [options] [pattern] [replacement] (file/directory)* +Options: + --find, -f find the pattern (default) + --replace, -r replace the pattern + --peg pattern is a peg + --re pattern is a regular expression (default); extended + syntax for the regular expression is always turned on + --recursive process directories recursively + --confirm confirm each occurence/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) + --verbose be verbose: list every processed file + --help, -h shows this help + --version, -v shows the version |