Project

General

Profile

Actions

User story #8169

closed

How to: Ensure a line is present in a file (and only one time!)

Added by Vincent MEMBRÉ about 5 years ago. Updated about 5 years ago.

Status:
Released
Priority:
N/A
Category:
Documentation
Target version:
Suggestion strength:
User visibility:
Effort required:

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!

Actions #1

Updated by Vincent MEMBRÉ about 5 years ago

  • Status changed from New to In progress
Actions #2

Updated by Vincent MEMBRÉ about 5 years ago

  • 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
Actions #3

Updated by Vincent MEMBRÉ about 5 years ago

  • Status changed from Pending technical review to Pending release
  • % Done changed from 0 to 100
Actions #4

Updated by Vincent MEMBRÉ about 5 years ago

  • 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.

Actions

Also available in: Atom PDF