Re:Batch editing files with ed
by KC8ZKF on Saturday May 12, 2018 @02:23PM
(#17055312)
[ Parent
| on HN ]
that doesn't match the indentation on the subsequent line though, does it?
You are missing the dash that the line starts with
sed -i.bak s/baz/"baz\\n - elephants"/ *.txt