(bsd sed): target 3 sections of regex pattern, and further target one specific section to copy to new line.