79706740

Date: 2025-07-18 21:06:52
Score: 1.5
Natty:
Report link

Passing the replacement text through echo -e solved the problem...

$ echo ": HIGHLIGHT some more text   " | sed "s/: HIGHLIGHT.\\{1,\\}\$/$(echo -e $_highlight)/g"
[BLUE]
$
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Mike T.