[shell] How to insert a newline in front of a pattern?