作成者: | アンドレアス・ルンプフ |
---|---|
バージョン: | 0.9 |
Nimgrep は検索と置換処理ができるコマンドラインツールです。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 Nim's eccentric style insensitivity. Apart from that it is a generic text manipulation tool.
このコマンドで nimgrep をコンパイルします。
nim c -d:release tools/nimgrep.nim
And copy the executable somewhere in your $PATH.
--find, -f | 検索パターン (デフォルト) |
---|---|
--replace, -r | 置換パターン |
--peg | PEG パターンを使用します。 |
--re | 正規表現パターンを使用します (デフォルト)。正規表現の拡張構文は常時有効です。 |
--recursive | ディレクトリを再帰的に処理します。 |
--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 | 英数大小文字を同一視します。 |
--ignoreStyle, -y | スタイルを同一視します。 |
--ext:拡張子1|拡張子2|... | 指定された拡張子に該当するファイルのみ検索対象とします。 |
--verbose | be verbose: list every processed file |
--help, -h | このヘルプを表示します。 |
--version, -v | バージョンを表示します。 |