I use the grep command to search for a string in many files. Is there something similar to "search and replace"?
Tell me more
×
Ask Ubuntu is a question and answer site for
Ubuntu users and developers. It's 100% free, no registration required.
|
|
||||
|
|
|
You are looking for the
|
|||||
|
|
sed comes to mind. Example:
This searches for cat in a line and puts dog on it's place in the file input and writes to file output. |
|||
|
|
|
where |
|||
|
|