How to do case-insensitive multiple replacement using "vi"? -


Actually I want to make the following replacement using vi:

  Apple-> Orange Apple- & gt; Orange APPLE- & gt; ORANGE   

Is there a way to do it in one line?

You can use the sed command

  $ cat os .txt Best Unix Unix UNIX SAD supports "case insensitive" search of "I" or "I"   

If you need to use vi then this command

  1, $ s / apple / orange / gi    

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -