How do I use Find and Replace in grep?

How do I use Find and Replace in grep?
Answer
Basic Format
  1. matchstring is the string you want to match, e.g., “football”
  2. string1 would ideally be the same string as matchstring, as the matchstring in the grep command will pipe only files with matchstring in them to sed.
  3. string2 is the string that replace string1.
 

Tìm kiếm

Back
Top