I'm trying to do a simple (I think) search and replace in a file.
Search for the test wrapped between @{...} and replace it with %<...>.
For example:
@{SOMETEXT_A}becomes$<SOMETEXT_A>@{SOMETEXT_B}becomes$<SOMETEXT_B>@{SOMETEXT_C}becomes$<SOMETEXT_C>
I have this in sed which matches the search params,
sed -i 's/\@{.\*}/\$<.\*>/g' input.txt
..but doesn't copy the string to the result and instead results in
$<.*>
How do I copy over the regex match from ".*" into the replace string?
Many thanks