z/OS UNIX System Services User's Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Multiple-condition operators

z/OS UNIX System Services User's Guide
SA23-2279-00

Operator
Meaning
&&
The double ampersand operator means AND. For example:
$3 > 10 && $4 > 100.00 { print $1, $2 }
prints the first and second fields of any record where $3 is greater than 10 and $4 is greater than 100.00.
||
The double "or-bar" operator means OR. For example:
$1 == "Linda" || $1 == "Lori"
prints any record with a first field that is either Linda or Lori.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014