I’m looking to recurse through a folder and replace all occurences of {{text in here}} with %{text in here}
I checked the other grep+sed topics but they generally have to do with standard string replacement; I want to keep the string intact, but replace some characters surrounding the string (basically replacing the first opening brace with a % and removing the second closing brace).
Try regexp like
s/{{\(.*\)}}/%{\1}/\1 in second string gets substituted with contents of first (…) pair