diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-01-15 18:23:18 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-01-15 18:23:18 -0800 |
| commit | d31d2e89850d3132850e0f2e1ce6d973bd482073 (patch) | |
| tree | 654739b075372bbe55b4082b2c77d7e70813e7fb /bp.1 | |
| parent | 87ad1efc24521c0a17c1d8d627518f1eb9f4fa4f (diff) | |
Added interactive confirmation mode for replacing text
Diffstat (limited to 'bp.1')
| -rw-r--r-- | bp.1 | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -12,6 +12,7 @@ bp \- Bruce's Parsing Expression Grammar tool [\fI-l\fR|\fI--list-files\fR] [\fI-i\fR|\fI--ignore-case\fR \fI<pattern>\fR] [\fI-I\fR|\fI--inplace\fR] +[\fI-C\fR|\fI--confirm\fR] [\fI-p\fR|\fI--pattern\fR \fI<pattern>\fR] [\fI-P\fR|\fI--pattern-string\fR \fI<string-pattern>\fR] [\fI-r\fR|\fI--replace\fR \fI<replacement>\fR] @@ -40,6 +41,9 @@ Perform pattern matching case-insensitively. .B \-I\fR, \fB--inplace Perform filtering or replacement in-place (i.e. overwrite files with new content). +.B \-C\fR, \fB--confirm +During in-place modification of a file, confirm before each modification. + .B \-r\fR, \fB--replace \fI<replacement>\fR Replace all occurrences of the main pattern with the given string. |
