If you are a programmer or someone who regularly requires replacing text strings from multiple files, then Replace-me is just what you might need. It is a Nautilus extension to find and replace text strings from multiple files within numerous directories and sub-directories. It can identify and replace text strings from files via right-click context menu. Replace-me is a useful tool for those who may require finding and replacing text string from, e.g., code files or even batch files (to change the command parameters).
You can install Replace-me in Ubuntu 11.10 Oneiric Ocelot using the following Terminal commands:
sudo add-apt-repository ppa:atareao/nautilus-extensions sudo apt-get update sudo apt-get install replace-me
After installation, either use the below command or log off and log in again to refresh Nautilus.
With Replace-me, you can easily search and replace words and phrases by right-clicking a file and entering the search and replace string.
This will open a new window which will display the path of the selected file. Enter the text that you wish to replace, followed by the text string that is to be replaced. As you can see in the below screenshot, you can replace an entire text string with specified text easily within any document. this can help you replace hundreds of text strings in several files, easily. For example, if you have a code file which contains a line of code that is recurring in the file and needs to be replaced with a different line, then you can simply right-click the document, enter the text string that should be replaced (in the Replace section), and enter the text string that is to replace the text (in With section). This will replace the text string wherever it may be present in the respective document.
For more information, check out the developer’s website.
Replace-Me Nautilus Extension