Changes

Jump to: navigation, search

Tutorial10: Shell Scripting - Part 1

245 bytes added, 09:32, 16 July 2020
Using Control Flow Statements in Shell Scripts
'''Logic Statements'''
<table align="right"><tr valign="top"><td>[[Image:logic-1.png|thumb|right|150px|Examples of simple comparisons using the test command.]]</td><td>[[Image:loop-1.png|thumb|right|150px|Examples of using additional comparisons using the test command.]]</td></table>A logic statement is used to determine which Linux commands to be executed based <br>on the result of a condition (i.e. TRUE (zero value) or FALSE (non-zero value)). There are several logic statements, but we will just concentrate on the if statement.��
<pre>
if test condition
then command(s)
fi
</pre>
13,420
edits

Navigation menu