1

Find regex, place on individual lines and insert blank line before

view story
linux-howto

http://www.unix.com – Hello, I have a file that I want to be able to insert a new line before every instance of a regex. I can get it to do this for each line that contains the regex, but not for each instance. Contents of infile: Code: Test this 1... Test this 2... Test this 3...  Test this 4...  Test this 5... Test this 6... I would like it to look like this: Code: Test this 1... Test this 2... Test this 3...  Test this 4...  Test this 5... Test this 6... This is on a SunOS 5.10 box. Moderator's Comments: (HowTos)