I am not sure if it is what you need, yet you can use sed
in bash
. I also assume that your data is stored in a file called temptest2
sed "s/\(.*Specialty.*\)\"/\1\n/g" temptest2
- Use
-i
to save the output to thetemptest2
- () specify a field for you, which is being called by \1 and then sed adds
\n
to the end of it.
solved Append LINE FEED in VIM repeatedly after a line containing a unique String