Answer the question
In order to leave comments, you need to log in
[[+content_image]]
How to move output after dot to new line?
grep linux get sentences from file
grep -E '[[:upper:][:lower:][:punct:] ]*\.' sentence.txt
Answer the question
In order to leave comments, you need to log in
Output to standard stream:
sed -e 's/\.\s/\.\n/g' sentence.txt
Replacement in file:
sed -i 's/\.\s/\.\n/g' sentence.txt
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question