Thursday, December 8, 2016

Using if/then Structures

Control Structures in Scripts I

Using if/then Structures

if
condition
then
commands
else
commands
fi

The if part of the structure tells the shell to determine if the specified condition evaluates to true or false. If it is true, the commands under the then part of the structure are run. If the condition evaluates to false, the commands under the else part of the structure are run.

LX0-104 Exam Objectives (F)

No comments:

Post a Comment