Open main menu

CDOT Wiki β

Changes

Tutorial10: Shell Scripting - Part 1

326 bytes added, 10:30, 16 July 2020
Using Control Flow Statements in Shell Scripts
'''Logic Statements'''
xA logic statement is used to determine which Linux commands to be executed based 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> 
'''Looping Statements'''
13,420
edits