Double Commander

2.4. Find files

Content

1. Introduction
2. Tab "Standard"
3. Tab "Advanced"
3.1. Searching for files with specific attributes
3.1.1. Advanced patterns
3.1.2. Examples
4. Tab "Plugins"
5. Tab "Load/Save"
6. Tab "Results"
7. Additional configuration

1. Introduction

Search tool capabilities are grouped by tabs, we can switch between the tabs using Alt+1...Alt+4 key combinations.

In addition, some functions can be accessed from the main menu of this window.

2. Standard

On this tab we can search for files by name and their content.

Search: Standard

Line Start in directory specifies directory to start search, by default will be use the current directory of the active panel.

Additional options for specifying file search locations:

Line File mask sets the mask for the search.

Additional options:

Note: File mask, Exclude files, Start in directory and Exclude subdirectories allow to enter several values, separated with semicolon ";" without spaces. If we need to find a file with semicolon in the name, we have to enable regular expressions.

If the Find text in file checkbox is enabled, the process will search for the specified text in the files. We can also replace this text with any other text, specified in the line Replace by by enabling the checkbox.

Additional options:

Use Shift+Del to remove unnecessary entries from the input fields history.

The Start button starts search, Cancel stops search and Close closes the Find files window.

New search — clears the old results and allows to start a new search (also with new conditions).

Last search — loads parameters from the previous search (in the current session, before closing Double Commander).

3. Tab "Advanced"

Tab Advanced allows to specify additional conditions: date, time and age of file (by modification date), minimum and maximum file size, as well as file attributes.

Search: Advanced

File attributes can be specified manually or using a small assistant on the Add button (see below for more details on using file attributes). The Help button opens the next subsection of this page.

Here we can also choose to search for duplicate files using the following one or more criteria:

In the result will be shown file names, group number of matching files and file locations.

3.1. Searching for files with specific attributes.

To search for specific attributes we must enter a string pattern, which specifies which attributes are searched for, and if they should be enabled or disabled.

A single attribute is represented with the following format:

<attribute>+ or <attribute>-

The plus sign means that the file must have that attribute set, a minus sign means that the file must not have that attribute set.

The various <attribute> identifiers are as follows:

Attributes in Windows
Attribute letterWhat it stands for
a
archive
c
compressed (NTFS compression)
d
directory
e
encrypted (EFS encryption)
h
hidden
l
symlink
p
sparse
r
read only
s
system
t
temporary

Attributes in Unix/Linux (Permissions)
Permissions lettersWhat it stands for
ur
user read
uw
user write
ux
user execute
gr
group read
gw
group write
gx
group execute
or
others read
ow
others write
ox
others execute
us
set user ID
gs
set group ID
sb
sticky bit

Attributes in Unix/Linux (File Types)
File Types lettersWhat it stands for
b
block
c
character
d
directory
f
fifo
l
symlink
r
regular
s
socket

In Unix/Linux we may also use octal representation of permissions. For example 0750 is the same as ur, uw, ux, gr and gx combined.

3.1.1. Advanced patterns

Several attributes may be combined together with an AND relationship. Just specify one pattern after another.

For example: r+s+h+ matches files that have all three: read-only, hidden and system attributes set.

Furthermore, such groups of AND attributes may be combined together with an OR relationship. This is done by using the "|" character (vertical bar).

For example: r+|s+h+ matches files that have either:

It is possible to negate AND sequences using "!" character specified at the start of the sequence.

For example: !r+s+h+ matches files that don't have all three: read-only, hidden and system attributes set. The matched file may have none, one or more of those attributes set, but not all of them.

Negation only applies to AND sequences, thus pattern !r+|!s+h+ matches files that either:

3.1.2. Examples


Example in Windows
Examples lettersHow it is interpreted
a+s-h-
matches files that have archive attribute set and don't have neither system nor hidden attributes set
e+|c+
matches files that are either compressed or encrypted
d-
matches files but not directories

Example in Unix/Linux
Examples lettersHow it is interpreted
uw+|gw+|ow+
matches files that are writeable either by user, group or anybody else
222+
matches files that are writeable by user, and by group, and by anybody else
d+ox+
matches directories that are accessible by anybody
!700+
matches files that are not fully accessible to the user

4. Tab "Plugins"

Search with the search (DSX) and content (WDX) plugins (description of plugin types and their installation is described here).

An example of images search by width with minimum and maximum values:

Search: Plugins

The DSX plugins interface allows to send them parameter values from the "Standard" and "Advanced" tabs, the exact list of passed values depends on the capabilities of a particular plugin.

WDX plugins complement the search, their fields can be combined according to the following rules:

Operator and Value depend on the type of data returned by the plugin field: number, string, date, time or boolean type. For some numerical values, we can choose a unit of measurement (for example, for size or duration). The following compare operations are supported:

Operator Description
=
equal
!=
not equal
=(case)
equal, case sensitive
!=(case)
not equal, case sensitive
>
larger
<
smaller
>=
larger or equal
<=
smaller or equal
contains
string contains specific text
!contains
string does not contain specific text
contains(case)
string contains specific text, case sensitive
!contains(case)
string does not contain specific text, case sensitive
regexp
string matches regular expression
!regexp
string does not match regular expression

5. Tab "Load/Save"

Tab Load/Save — allows to save search parameters so they can be used again later.

Also, here we can see the templates created in the Colors > File types settings section and in the Select a Group command dialog.

There is a field with a hint under the list of templates: for the selected template, the values of File mask and Start in directory (if it was saved) are displayed.

6. Tab "Results"

This tab contains results of the search (just a list of full filenames) and has the following buttons:

7. Additional configuration

Additional parameters associated with the search tool are presented on the File operations > File search settings page.

Search: Additional configuration

File search:

Text search in files:


Valid HTML 4.0 Transitional CSS Valid!