Is there a way to make sed ask me for confirmation before each replace? Something similar to 'c' when using replace inside vim.
Does sed do this at all?
Doing it with sed would probably be possible but would require far too much thinking. It is easier to just do it with vim:
You can get this by doing such:
Specifically, adding the
Note that the 'c' option only works in Vim; you won't be able to use it with