With KFileReplace, you can replace strings by anothers inside all files of a directory. For example, it makes very easy to replace these two strings in all "*.htm*" files of the "/home/fdupoux/pagesweb" directory:
Then, when an adresse or a telephone number has changed, it's really easy to update all the references in all pages of a web site in a few seconds.
You can make a search (files were only been read), or make a replace. After the operation, the result list show list of all files wich were found or replaced while the operation. When success, a green icon appears, and the number of found/replaced strings is printed in the "Nb Replaced" row. If you wan to have more details, just click on the cross of the file, and a sublist appears, where you can see, for each string, how many occurrences there are. Where an errors occurs, a red cross appears, and in the last row, the details is print. For example, you can see "Access denied", if the user have no access to the file.
You can apply some date and size criterias to the operation: You can major and minor the dates and the sizes of the files to be found. For example, you can search only the files which size is more than 20 Ko, and less than 50 Ko: (20 Ko < size < 50 Ko). It's the same thing with the dates. (for example 15/12/1999 < date < 01/08/2000).
Since the 0.4 version, the is a new important feature in KFileReplace: the wildcards keywords. It allows you to put * and ? wildcards in the string to search, to mean an expression or a chacater. That's the same thing with the filenames, when you type "ls lib*.o". For example, if you have a search string which is /usr/src/linux-*/, and the corresponding replace string is /usr/src/linux/version-*/, then we will see:
Since the 0.5.2 version, there is a variables support: you can type a variable in the replace string, and the value of this variable will be written in the file when doing the replace operation. For example, you can use the datetime, or the filename variable. Then, you can easily replace Last update: XX/XX/XXXX with Last update: [$datetime:yyyy/mm/dd$]. Then the last update time will be written in all the files of the directory.
Please, report all bugs to the author, by sending him an e-mail.
Everyone is welcome to contribute to the KFileReplace project. You don't have to be a developer to do it. You can do many things:
Please, contact the author if you want to works to help this project, then we will check the work is not already done, or being done. You also need to download the last version before writing anything: don't translate an old documentation version
You can look at the TODO file to have more details about things to do in the project