Qucik Tech Reference

Monday, November 06, 2006

vi subsitute function

:1;$s/rex/rdf
-> starting from line 1 to the end of file, s -> sunsitute, 'rex' with 'rdf'

:1;$s/^v//
-> starting from line 1 to the end of file, s -> sunsitute, '^' with 'nulls'

0 Comments:

Post a Comment

<< Home