June 2003
Beginner to intermediate
944 pages
43h 1m
English
if
if
(
condition
)
command1
[else
command2]If condition is true, execute command1; otherwise, execute command2. condition can be an expression using any of the relational operators <, <=, = =, !=, >=, or >, as well as the pattern-matching operator ~. A series of commands must be put within braces.
The following line determines whether the first word in each line starts with A, uppercase or lowercase:
if ($1 ~ /[Aa]*/)Read now
Unlock full access