Configure replace from terminal on IOS/IOS-XE

Today I stumbled on a problem that I wanted to replace VPN names in my whole config on CSR1000v. 

Instruction on how to do it I’ve found on invaluable Ivan Pepelnjak’s blog:

Basically I created a file in Notepad++, replaced what I wanted then I copied the new content to new file on flash via ssh session using the instruction in the link provided above e.g.

Afterwards I just replaced current config with the one in file: 

 And voila!