我的文件内容
a_0.html:<a href="/member/127/abc--australian-broadcasting-corporation-"><img src="/images/button_viewprofile.gif" title="View Profile" alt="View Profile" /></a></div><p><a href="/member/127/abc--australian-broadcasting-corporation-">ABC (Australian Broadcasting Corporation)</a></p></div>
a_0.html:<a href="/member/31/ac-capital-strategic-public-relations"><img src="/images/button_viewprofile.gif" title="View Profile" alt="View Profile" /></a ></div><p><a href="/member/31/ac-capital-strategic-public-relations">AC Capital Strategic Public Relations</a></p></div>
a_0.html:<a href="/member/79/aims-financial-group"><img src="/images/button_viewprofile.gif" title="View Profile" alt="View Profile" /></a></div><p><a href ="/member/79/aims-financial-group">AIMS Financial Group</a></p></div>
之后的内容:
<a href="/member/52/knauf-plasterboard--tianjin--co--ltd-"><img src="/images/button_viewprofile.gif" title="View Profile" alt="View Profile" /></a></div><p ><a href="/member/52/knauf-plasterboard--tianjin--co--ltd-">Knauf Plasterboard (Tianjin) Co. Ltd.</a></p></div>
a_8.html:
<a href="/member/85/kpmg-huazhen-certified-public-accountants"><img src="/images/button_viewprofile.gif" title="View Profile" alt="View Profile" /></a></di v><p><a href="/member/85/kpmg-huazhen-certified-public-accountants">KPMG Huazhen Certified Public Accountants</a></p></div>
a_8.html:
<a href="/member/7/latitude-architects-design"><img src="/images/button_viewprofile.gif" title="View Profile" alt="View Profile" /></a></div><p><a href="/m ember/7/latitude-architects-design">Latitude Architects Design</a></p></div>
a_8.html:
<a href="/member/86/lehmanbrown"><img src="/images/button_viewprofile.gif" title="View Profile" alt="View Profile" /></a></div><p><a href="/member/86/lehma nbrown">LehmanBrown</a></p></div>
在vim中可以这样实现:
:%s/html:/&\r/g
|----------------------------------------------------------------------------------------|
版权声明 版权所有 @zhyiwww
引用请注明来源 http://www.blogjava.net/zhyiwww
|----------------------------------------------------------------------------------------|
posted on 2009-10-30 17:28
zhyiwww 阅读(3917)
评论(2) 编辑 收藏 所属分类:
linux