How could I copy digits from one end of a string to another end of a string? So example,
Input -
Example123:Hello
Exp12:Hey1
Exp:heylo
expected output -
Example123:Hello123
Exp12:Hey112
Exp:heylo
I'm open to using sed or awk, seperator must be accounted for, so row1 is the row to extract digits from and row 2 is the row to place digits