Hi
I have a file like this:
Peter North
Mary
Peter North
Peter Borough
Mary
I need there to put 'X' (or anything) on a new line between the two lines where 'Peter' begins the line. There will be many matches to this string, but they will always begin with 'Peter'.
Ie, the resulting output should be something like this:
Peter
Mary
Peter
X
Peter
Mary
Trying to work this out is proving difficult so if anyone has any suggestions...?