Actions
Bug #6431
closedHow to line replacement in Enforce a file content
Bug #6431:
How 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
Updated by Nicolas CHARLES over 11 years ago
- Status changed from New to Discussion
- Assignee set to Anthony Lawson
Updated by Anthony Lawson over 11 years ago
Hi Nicolas,
Thanks, it works fine for me
Updated by Dennis Cabooter over 11 years ago
Hi Nicolas,
Maybe it would be a good idea to add an example like this in the documentation. I needed it once as well and fortunatly you were helping me to get it right. To be honest I'm able to do some basic regex, but I'm not a regex guru. :D
Updated by Nicolas CHARLES over 11 years ago
- Category set to Techniques
- Status changed from Discussion to 8
- Assignee changed from Anthony Lawson to Nicolas CHARLES
- Target version set to 2.10.13
Updated by Nicolas CHARLES over 11 years ago
- Related to deleted (Bug #5979: Document usage of line replacement in Enforce a file content technique)
Updated by Nicolas CHARLES over 11 years ago
- Is duplicate of Bug #5979: Document usage of line replacement in Enforce a file content technique added
Updated by Nicolas CHARLES over 11 years ago
- Status changed from 8 to Rejected
Rejecting as a duplicate of 5979; it is fixed there
Actions