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

8 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.

  3. Hi theгe, You һave done a fantastic job. I’ll definnitely
    digg it and personally recommend tߋ my friends.
    I am confident tһey’ll Ƅe bbenefited from this site.

  4. Thanks for the sensible critique. Me and my neighbor were
    just preparing to do a little research on this.
    We got a grab a book from our area library but I think I learned more clear from this
    post. I am very glad to see such magnificent info being shared
    freely out there.

Leave a Reply

Your email address will not be published.


*


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