Is there any command in Linux which will find a particular word in all the files in a given directory and the folders below and replace it with a new word?
|
feedback
|
migrated from stackoverflow.com Aug 17 '11 at 17:36
This question came from our site for professional and enthusiast programmers.
|
This will replace in all files. It can be made more specific if you need only a specific type of file. Also, it creates a
To remove all the backup files when you no longer need them:
| |||||||
feedback
|
|
You can use the following command:
It uses | |||
|
feedback
|
|
Not a single command but combination of several:
Example from here | |||
|
feedback
|
|
If you want more control you could use a python script like: | |||
|
feedback
|
