Changes

Jump to: navigation, search

Tutorial12: Shell Scripting - Part 2

250 bytes added, 09:52, 28 July 2020
INVESTIGATION 1: ADDITIONAL LOGIC STATEMENTS
# Save your editing session and exit the text editor (eg. with vi: press '''ESC''', then type ''':wx''' followed by '''ENTER''').<br><br>
# Issue the following linux command to add execute permissions for your shell script:<br><span style="color:blue;font-weight:bold;font-family:courier;">chmod u+x if-4.bash</span><br><br>
# Run your shell script by issuing: <span style="color:blue;font-weight:bold;font-family:courier;">./if-4.bash</span><br><br>What do you notice? Try running the script several times with numbers different and equal to each other to confirm that the shell script works correctly.   In the next investigation, you will ..learn more about the '''for''' loop and learn how to use the '''while''' loop for error-checking.<br><br>
=INVESTIGATION 2: ADDITIONAL LOOPING STATEMENTS =
13,420
edits

Navigation menu