I have this:
Issue #12345: some more text here https://some.domain/some/path
I would like to find the 12345 bit (which is dynamic - so will need to be via a regex), and then add it to the end of the same line. Like so:
Issue #12345: some more text here https://some.domain/some/path/12345
How can I achieve that using sed/awk?
PS: I have looked around, but the only similar question was this: Replacing part of a string with another part of that same string ...but it is missing the regex bit.