Artificial intelligent assistant

How do I use tr command to replace: full stops, exclamations and question marks followed by a space, with newlines? I have text that goes like this: I am happy. I am here. How are you, Meg? I want this to be: I am happy. I am here. How are you, Meg? For full stops I tried tr -s '. ' '\n' <file.txt >out.txt But it's not working.

As far as I know `tr` only works with single characters and _". "_ is a string not a character, so it is possible to do what you want by using `sed` or `awk`, for example:


sed -e "s/\. /\
/g" file.txt > out.txt

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 7d97c1b52a2dfb842da9e924a52f69ab