| Specific find and replace Hi,
I have a text file which is split into various sections with different names and those sections have the same variables and values defined. eg.
[section 1]
ipaddr=192.168.1.1
user=user1
passwd=password1
[variable 2]
ipaddr=192.168.1.1
user=user2
passwd=password2
.... and so on...
I am looking for a command which would help me replace a specific string like the ipaddr value in a specific section - say the second section coz i need to integrate it into a bash script. I don't wanna do a global find and replace.
Assistance appreciated.
--Syd |