Closed sluongng closed 3 years ago
echo "aaabb" > file
fastmod '(a)*b' '${1}c' file
aaacb
a:1 - aaabb + acb Accept change (y = yes [default], n = no, e = edit, A = yes to all, E = yes+edit, q = quit)?
Shouldn't you need to write your pattern as (a*)b for this to work as expected? As written, it looks like you capture exactly one a.
(a*)b
a
You are correct. PEKAC i missed a bracket
Setup
Test
Expect
Actual