Actions
Bug #6431
closedHow to line replacement in Enforce a file content
Status:
Rejected
Priority:
1 (highest)
Assignee:
Category:
Techniques
Target version:
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:
Description
Situation:
In file /etc/myservice.config on server1:
mail.recipients=jon@mydom.com,doe@mydom.com,user1@mydom.com
In file /etc/myservice.config on server2:
#mail.recipients=mailer@mydom.com
I want to change these parameters to mail.recipients=ops@mydom.com
My Regex: [#]?(mail.recipients=).*
My String remplacement: mail.recipients=ops@mydom.com
But it doesn't work
Please provide docmentation on how to do this
Actions