We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28f539c commit 7d74d1bCopy full SHA for 7d74d1b
tests/main.t
@@ -30,6 +30,21 @@ Testing replace mode:
30
this is the third ___xxx line
31
this is the last line
32
33
+Testing replace mode with multiple changesets:
34
+
35
+ $ cat > test.txt <<EOF
36
+ > this is a testline
37
+ > this is the second barfoo line
38
+ > this is the third foobar line
39
+ > this is the last oofrab line
40
+ > EOF
41
+ $ goreplace -s foobar -r 111 -s barfoo -r 222 -s oofrab -r 333 test.txt
42
+ $ cat test.txt
43
+ this is a testline
44
+ this is the second 222 line
45
+ this is the third 111 line
46
+ this is the last 333 line
47
48
Testing replace mode with stdin:
49
50
$ cat > test.txt <<EOF
0 commit comments