Hi, I'm trying to insert newline paragraph breaks every 5 periods (sentences), in a text file. I'm getting a blank output, no errors. Thanks in advance.
perl -e '$count = 0; s/\./(++$count % 5 == 0)?"\n":$&/ge;' text-blob.txt > paragraphs.txt
In reply to Newline after every 5 periods by paulm2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |