How can I insert gaps at certain places in a text file using shell script? For example, I want to insert enter after word "complete" wherever it is found in a text file.
One of the possibilities is using
sed 's/complete/complete\n/g' filename
To replace the content of the file directly, use
To backup the original file with a
.bak extension, use
In order to provide a more precise answer, your question should be more accurate.