Buscar y reemplazar en vi o vim

Si estás editando en linux un archivo a través de consola con el comando vi o vim y deseas reemplazar un texto por otro de forma rápida tienes dos opciones:

:%s/texto_a_sustituir/texto_nuevo/g

:g/texto_a_sustituir/texto_nuevo/g

4 Comments

  1. Greate pieces. Keep writing such kind of information on your page.
    Im really impressed by it.
    Hello there, You have performed an excellent job. I’ll definitely digg it and in my opinion recommend to my friends.
    I’m confident they will be benefited from this website.

  2. Amazing blog! Do you have any hints for aspiring writers?
    I’m planning to start my own website soon but I’m a little lost on everything.
    Would you propose starting with a free platform like
    Wordpress or go for a paid option? There are so many options out there that I’m completely overwhelmed
    .. Any tips? Bless you!

    • Hello,
      Thank you very much for your comment.
      My recommendation is that if you want to start with a blog for free start with WordPress through https://wordpress.org/, or you can buy a shared hosting and install wordpress, although this requires a minimum knowledge of using a hosting and wordpress.

      WordPress is the most used platform in blogs.

      A greeting.

Leave a Reply

Your email address will not be published.


*


This site uses Akismet to reduce spam. Learn how your comment data is processed.