Open main menu

CDOT Wiki β

Changes

Tutorial10: Shell Scripting - Part 1

6 bytes added, 10:04, 10 March 2021
Using Control Flow Statements in Shell Scripts
'''Logic Statements'''
A '''logic statement''' is used to determine which Linux commands to be executed based<br>on are executed basedon the result of a condition (i.e. :<br>'''TRUE ''' (zero value) or '''FALSE ''' (non-zero value)).
<table align="right"><tr valign="top"><td>[[Image:logic-1.png|thumb|right|250px|Example of using the '''if''' logic control-flow statement.]]</td><td>[[Image:loop-1.png|thumb|right|250px|Example of using the '''for''' looping control-flow statement.]]</td></table>
13,420
edits