Sostituire un Pattern in Vi

Questo è il comando da dare:
:%s/pattern originale/pattern modificato/g

Il % indica che è da fare su tutto il testo, s è il comando di sostituzione, poi si mettono i due pattern e in fine g per indicare che vanno sostituite tutte le occorrenze (anche piu’ di una per riga).

This entry was posted in Tecnico. Bookmark the permalink. Trackbacks are closed, but you can post a comment.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

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