Replace a line containing certain characters using vi

I’d like to replace all line containining “CreateTime=xxxxx” with “CreateTime=2012-01-04 00:00″. May I know how should I do it with vim?

[m18]
Attendees=38230,92242,97553
Duration=2
CreateTime=2012-01-09 22:00

[m20]
Attendees=52000,50521,34025
Duration=2
CreateTime=2012-01-09 00:00

[m22]
Attendees=95892,23689
Duration=2
CreateTime=2012-01-08 17:00


Download replace.a.line.containing.certain.characters.using.vi.zip
Direct Link


Download


Download replace.a.line.containing.certain.characters.using.vi.zip
Mediafire


Download


Download replace.a.line.containing.certain.characters.using.vi.zip
Mega.co.nz


Download

Both comments and pings are currently closed.

Comments are closed.