So the the BEGIN { $/ = "}\n" } changes the input record separator?
Should I substitute REGEX with the regex for the find, and the STRING with the replace? Not sure how much of this actually goes in the shell prompt. Did you write REGEX and STRING as placeholders? Can anyone assist?