13

How to insert line with between two consecutive lines that match special pattern?

view full story
linux-howto

http://www.unix.com – I have following pattern in a file: Code: 00:01:38 UTC  abcd 00:01:48 UTC 00:01:58 UTC efgh 00:02:08 UTC 00:02:18 UTC and I need to change something like the following Code: 00:01:38 UTC  abcd 00:01:48 UTC XXXX 00:01:58 UTC efgh 00:02:08 UTC XXXX 00:02:18 UTC What would be the best way of doing it? Thanks Moderator's Comments: Code tags for code, please. (HowTos)