Timeline for Problems with replacing XML tag contents using sed
Current License: CC BY-SA 4.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Dec 28, 2021 at 20:48 | comment | added | Arets Paeglis | Thank you! That seems to answer more of my questions than I was able to figure out so far. However, I notice that, when running cat test.xml | sed "s/>[+]\([0-9][0-9]*\)<\/value>/>+$(echo \\1)<\/value>/g" (without piping the result to sha1sum), it seems to process the backreference correctly and outputs not the constant string "\\1" but the actual matched values, unmodified. What could be the case here? | |
| Dec 28, 2021 at 20:22 | vote | accept | Arets Paeglis | ||
| Dec 28, 2021 at 20:22 | history | bounty awarded | Arets Paeglis | ||
| S Dec 28, 2021 at 18:03 | review | First answers | |||
| Dec 29, 2021 at 9:19 | |||||
| S Dec 28, 2021 at 18:03 | history | answered | user52932 | CC BY-SA 4.0 |