Nguyễn Trọng Tân
New member
How do I use Find and Replace in grep?
Answer
Basic Format
Answer
Basic Format
- matchstring is the string you want to match, e.g., “football”
- 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.
- string2 is the string that replace string1.