User story #8169
closed
How to: Ensure a line is present in a file (and only one time!)
Added by Vincent MEMBRÉ over 8 years ago.
Updated over 8 years ago.
Description
Ensuring there is only one line matching a regexp present in a file is a complicated thing,
If there was only one line, only use a replacement and i'ts ok !
But if there was multiple lines... you'll need to do some magic and we will try to explain it here!
- Status changed from New to In progress
- Status changed from In progress to Pending technical review
- Assignee changed from Vincent MEMBRÉ to François ARMAND
- Pull Request set to https://github.com/Normation/rudder-doc/pull/173
- Status changed from Pending technical review to Pending release
- % Done changed from 0 to 100
- Status changed from Pending release to Released
This bug has been fixed in Rudder 2.11.21, 3.0.16, 3.1.10 and 3.2.3 which were released on 2016-06-01, but not announced.
Also available in: Atom
PDF