Open main menu

CDOT Wiki β

Changes

Tutorial12: Shell Scripting - Part 2

134 bytes added, 11:59, 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 create use the '''exit''' statement to '''terminate the execution of a shell script''' if not run properly and test-out use the '''~/.bashrcbreak''' statement that will '''terminate a loop''' start-up file to customize your Bash but NOT terminate the running of the shellscript.
=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