Open main menu

CDOT Wiki β

Changes

Tutorial12: Shell Scripting - Part 2

32 bytes added, 12:00, 21 March 2021
INVESTIGATION 2: ADDITIONAL LOOPING STATEMENTS
# Issue the following to run a checking script:<br><span style="color:blue;font-weight:bold;font-family:courier;">bash /home/murray.saul/myscripts/week12-check-2</span><br><br>
# If you encounter errors, make corrections and '''re-run''' the checking script until you<br>receive a congratulations message, then you can proceed.<br><br>
:In the next investigation, you will learn to use the '''exit''' statement to '''terminate the execution of a shell script''' <br>if not run with the properly number of arguments and use the '''break''' statement that will '''terminate a loop''' but NOT terminate the running of the shell script.
=INVESTIGATION 3: <span style="font-family:courier;font-weight:bold;">exit</span> AND <span style="font-family:courier;font-weight:bold;">break</span> STATEMENTS=
13,420
edits