0

I want to start each sentence from a new line by changing '. ' to '.\n'. The solution from https://unix.stackexchange.com/questions/190985/how-to-put-sentences-on-separate-lines-on-linux

sed 's/[.]  */&\n/g' text.txt

doesn't work on MacOS:

sed: 1: "s/.
": unterminated substitute pattern

How to fix it to run on MacOS?

homocomputeris
  • 509
  • 5
  • 18

0 Answers0