Greetings, how do I perform the following in BSD sed?
sed \'s/ /\\n/g\'
From the man-page it states that \\n will be treated literally with
For ease of use, i personally often use
cr="\n" # or (depending version and OS) cr=" " sed "s/ /\\${cr}/g"
so it stays on 1 line.