01.01.2013 Views

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

VC ( 1 ) VC (I)<br />

:asg keyword=value<br />

Used to assign values to keywords. An a.sg statement overrides<br />

the assignment for the corresponding keyword on the<br />

vc command line and all previous a.sg ' s for that keyword.<br />

Keywords declared, but not assigned values have null values.<br />

:if condition<br />

:end Used to skip lines of the standard input. If the condition is<br />

true all lines between the if statement and the matching end<br />

statement are copied to the standard output. If the condition<br />

is false, all intervening lines are discarded, including<br />

control statements. Note that intervening af statements and<br />

matching end statements are recognized solely for the purpose<br />

of maintaining the proper af-end matching.<br />

The syntax of a condition is:<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

string><br />

::= [ "not" ] <br />

::= I "I" <br />

::= I "&" <br />

::= "(" ")" I <br />

::= "=" I "!=" I " < " I " >"<br />

::= <br />

The available operators and their meanings are:<br />

equal<br />

!= not equal<br />

& and<br />

I or<br />

> greater than<br />

< less than<br />

( ) used for logical groupings<br />

< numeric<br />

not may only occur immediately after the af,<br />

and when present, inverts the value of<br />

the entire condition<br />

The > and < operate only on unsigned integer values (e. g.:<br />

012 > 12 is false). All other operators take strings as arguments<br />

(e. g.: 012 != 12 is true). The precedence of the<br />

operators (from highest to lowest) is:<br />

=!=> <<br />

&<br />

I<br />

all of equal precedence<br />

Parentheses may be used to alter the order of precedence.<br />

Values must be separated from operators or parentheses by<br />

at least one blank or tab.<br />

- 2-

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!