Open main menu

CDOT Wiki β

Changes

Tutorial10: Shell Scripting - Part 1

3 bytes added, 09:53, 10 March 2021
Using Control Flow Statements in Shell Scripts
<table align="right"><tr valign="top"><td>[[Image:test-1.png|thumb|right|140px|Examples of simple comparisons using the test command.]]</td><td>[[Image:test-2.png|thumb|right|140px|Examples of using additional comparisons using the test command.]]</td></table>
'''Control Flow Statements''' are used to make your shell scripts <br>more '''flexible''' and can '''adapt''' to changing situations.
The special parameter '''$?''' Is used to determine the '''exit status''' of the previously issued Linux command.
13,420
edits