I have this file:
PHP Code:
192.168.1.1 v0
192.168.1.2 v0
192.168.1.3 v1
192.168.1.4 v1
192.168.1.5 v1
192.168.1.6 v2
192.168.1.7 v2
I want to substitute the v0-2 with NAM0-2 to get:
PHP Code:
192.168.1.1 NAM0
192.168.1.2 NAM0
192.168.1.3 NAM1
192.168.1.4 NAM1
192.168.1.5 NAM1
192.168.1.6 NAM2
192.168.1.7 NAM2
How can I do so with VI
It doesnt work. thanks