Bash Script to Concatenate Lines and Split Sentences in Linux
Write a bash script named 'x.sh' that satisfies the following requirements:
-
In the file 'text.txt', there are some lines that do not end with a period ('.') character. Use the linux command 'sed' to concatenate each of these non-period-ending lines with the following line.
-
For any line in which the word 'because' appears in the middle of the line, start a new line immediately after the word 'because'.
原文地址: https://www.cveoy.top/t/topic/lW63 著作权归作者所有。请勿转载和采集!