I have an assignment to put sentences in a text file on separate lines. Something like this almost works:cat file.txt | tr '.' '\n'But I don't want to lose dots, question marks and exclamation marks from my sentences. How can I make this work?
How to put sentences on separate lines on Linux
bash;text processing