How do I search an entire file for a word and replace it with another word using egrep?
Asked
Active
Viewed 198 times
1
-
You can't. Use something like `sed` instead. – roaima Jun 26 '17 at 21:26
-
@roaima, you want to make that a full answer? it would be the right one. Don' forget sed -r works with extended regular expressions like egrep. – hildred Jun 26 '17 at 21:39
-
Everyone, I want to keep this around to point users at. FAQ!. – hildred Jun 26 '17 at 21:41