How do I replace a word using grep?

Lò Ngọc

New member
How do I replace a word using grep?
Answer
How to grep and replace
  1. I don’t believe grep can do this (I could be wrong). …
  2. Try to use sed -i ‘s/.*substring.*/replace/’ – Eddy_Em Mar 14 ’13 at 6:42.
  3. @Eddy_Em That will replace the entire line with replace. …
  4. Possible duplicate of Using grep and sed to find and replace a string – jww Oct 25 ’17 at 0:25.
14 мар. 2013 г.
 

Tìm kiếm

Back
Top