VI global search and replace

29 06 2007

In case you need to search and replace text globally within vi, here’s the command to do so:

:1,$s/old/new

vi is a free software screen-oriented text editor computer program written by Bill Joy in 1976 for an early BSD release.

Peace!  \m/


Actions

Informations

Leave a comment

You can use these tags : <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>