replace string in file using vi

:%s/64/32/gc

 

 

s: substitute

64: quantity you want to replace

32: replace with

g: globally in the full file

c: asks for each match

 

 

Courtesy: Aabhaas 🙂

 

Advertisements