Next Previous Contents

4. Options

4.1 Recursivity: Include sub-folders

If this option is enabled, KFileReplace will work in all sub-directories of the main working directory. For example, if you choose to work on *.html files of the /usr/ directory, it will try to work on files of /usr/src/, of /usr/include/, ...

4.2 Create backup

This options is only useful in the replace operation: when you make a search, it makes nothing. In this case, it will create a backup of the files which will be modified. It create a file with the same name, and add .old at the end of the extension.

For example, if you had to replace a string in /usr/src/linux/README, then it will create a copy of the original into /usr/src/linux/README.old. Then, you can cancel the replace operation if there is an error.

4.3 Case sensitive

UNIX is case sensitive on filenames. If you choose this option, KFileReplace will make difference beetween lowers and uppers.

For example, is this options is enabled, and you are searching for linux, then the following expressions won't be taken: LINUX, Linux, LiNuX, ..., but they will be if the options is disabled.

4.4 When searching, stop on first string found

When searching, KFileReplace reads all the datas of each file to know how many times each strings appears in the files. If you needn't to have this details, you can enable this options to make the search faster. Then the search will be finished in a file when the first occurrence of a string will be found.

4.5 Ignore whitespaces

Ignore some characters when searching a string: \r (carriage return), \n (line feed) \t (tab), and multi-spaces. It's very useful in HTML code, and with the end of the lines. For example, if you are searching for Linux is fast in a file, and there is a line feed beetween Linux and is, then the string won't be found. This options can solve the problem.

4.6 Follow symbolic links

If this option is enabled, KFileReplace will not ignore symolic links for directories. Then, the files which are in a directory linked from a symbolic link in the working directory will be found. For example, if you are searching for all *.html files of /root/help, and /root/help/gimp-1.1.23 is a symbolic link for /usr/doc/HTML/gimp, then all html files of the gimp directory will be found.

4.7 Ignore hidden files

Some files and directories have names which begins with a point .. These files/directories are hidden. For example, most of the config files, in the home directory are hidden: .kde, .gimp, .kderc.

If you don't want KFileReplace to find theses files, check this option. Then, string won't be found, and won't be replaced in these files.

4.8 Confirm options

When replacing, you can enable three types of confirmations before replaces:

4.9 Enable Wildcards

It enables the two wildcards, usable in the searched strings.

For example, if you have a search string which is /usr/src/linux*/README, and the corresponding replace string is the README file of linux source, then these two expressions will be changed into the README file of linux source:

Another example: if you search for Li?ux, then LiNux will ne taken, but Liux, and LiNNNNux won't be.

If this option is disabled, the * and ? characters are normal letters, as A and k


Next Previous Contents