Complete Guide to Manipulating Newlines with sed: Insert, Replace, and Delete (Compatible with both BSD and GNU)