How can I replace all sequences of a dot followed by a space with a dot followed by a new line? On a unix box, with POSIX tools.
I thought sed
or tr
might be up for the job. But I can not figure it out.
I tried things like
sed 's/. /.\n/g' file
Reading How can I replace a newline (\n) using sed? did not make it happen for me.
EDIT: I was lost between the different escapes and forgot that I should escape the dot. so sed 's/\. /\.\n/g' file
works for me.