Hi,
I am have one file with a line
group=project_live
I need to replace it with line
group=project_live_support
before I execute some application related script.
The potentianl problem is when I replace this with sed using command
sed 's/group=project_live/group=project_live_support/g' [file-name]
for the first time it works fine. But depending on my business requirement I have to run the app-script multiple times. But for second time, it replaces and produces
group=project_live_support_support
3rd time,
group=project_live_support_support_support
Very Funny!! This happens due to replacement of string again and again
I have tried to replace the full line, not able to have a break-through. Do you have any ideas how the entire line can be replaced? The only requirement is to have string will have to be replaced with "group=project_live_support" should not change with multiple run.
Thanks in advance.
Regards,
Bhaskar