View Issue Details

IDProjectCategoryView StatusLast Update
0016822CentOS-7sedpublic2019-12-12 15:01
Reportermark.haney@gmail.com 
PriorityhighSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version7.7-1908 
Target VersionFixed in Version 
Summary0016822: sed-4.2.2-5.el7.x86_64 doesn't substitute specific match number properly
DescriptionTrying to substitute an alpha value TZ with TIMEZONE on the 7th match using sed 's/TZ/TIMEZONE/7' and it does not work. In fact, of the seven instances of TZ in my file (YML) I can either change them all with sed 's/TZ/TIMEZONE/' or sed 's/TZ/TIMEZONE/1g', but changing to subbing from the 2nd (or any other match) down does not work, it changes no values at all.

I'll be glad to offer any other help, but this one is a head scratcher.
Steps To Reproduceany simple sed subsitution on any match other than global does not work. Even matching on the first match changes all matches.
Additional InformationNone.
Tagssed match
abrt_hash
URL

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2019-12-12 15:01 mark.haney@gmail.com New Issue
2019-12-12 15:01 mark.haney@gmail.com Tag Attached: sed match