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