A sentence is a one that ends with period (.
), exclamation(!
) or question (?
). I tried
tr '\n' ' ' < input | sed -e 's/[.] \s*/. \\n/g'
I see \n
added in my file but the line does not really break there.
I am using bash 3.2 version on Mac OS X Mavericks.