Open main menu

CDOT Wiki β

Changes

Tutorial12: Shell Scripting - Part 2

No change in size, 10:19, 21 March 2021
INVESTIGATION 3: exit AND break STATEMENTS
# '''Add execute permissions''' for this Bash shell script.<br><br>
# Issue the following command (with arguments):<br><span style="color:blue;font-weight:bold;font-family:courier;">./break-2.bash hwd101 ipc144 uli101 apc100</span><br><br>What do you notice? How come '''uli101''' and '''apc100''' are NOT displayed<br>but a message appeared at the end of the script that the script completed?<br><br>
# 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-23</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><br>
13,420
edits