Using comparison operators
The following comparison operators are available: =
,
>
, <
, >=
,
<=
, and ^
for Boolean NOT.
The behavior of these operators depends upon the type of the field in the expression. The following table describes the field types and how they can be searched:
Field Type | Description | Notes |
---|---|---|
|
A single word |
The equality operator ( The relational operators perform comparisons in ASCII order. |
|
A block of text entered on the lines beneath the field name. |
The equality operator ( The relational operators are of limited use here, because
they’ll match the job if any word in the specified field
matches the provided value. For example, if a job has a text
field |
|
A single line of text entered on the same line as the field name. |
Same as text. |
|
One of a set of values. For example, job status can be
|
The equality operator ( |
|
A date and optionally a time. For example,
|
Dates are matched chronologically. If a time is not specified,
the operators |
|
Like |
These fields are not searchable with |
If you’re not sure of a field’s type, issue the p4 jobspec -o
command
, which displays your job specification. The field
called Fields:
lists the job fields' names and data
types.