我需要阅读文本文件中每个句子的长度。
我计划在不同的行上把每个句子分开,然后读每一行。
# LineSplitter
File="NameOfFile"
while read -r line; do
# check the neght of $line
done <$file我尝试使用tr来代替\n的.,但这删除了.,不适用于提问。
LineSplitter的解决方案?
应该是这样的
初始档案:
SMS marketing is an excellent customer service tool because messages are delivered and read almost immediately — and there’s room for two-way communication. And SMS customer service can be scaled and automated. Plus, if you leverage this channel, your business will save money on phone service and customer service personnel training.
See a few templates for customer support messages below.最终
SMS marketing is an excellent customer service tool because messages are delivered and read almost immediately — and there’s room for two-way communication.
And SMS customer service can be scaled and automated.
Plus, if you leverage this channel, your business will save money on phone service and customer service personnel training.
See a few templates for customer support messages below.发布于 2022-08-17 19:10:20
使用sed
$ sed 's/\. /&\n/g' input_file
SMS marketing is an excellent customer service tool because messages are delivered and read almost immediately — and there’s room for two-way communication.
And SMS customer service can be scaled and automated.
Plus, if you leverage this channel, your business will save money on phone service and customer service personnel training.
See a few templates for customer support messages below.https://stackoverflow.com/questions/73393586
复制相似问题