Open main menu

CDOT Wiki β

Changes

Tutorial12: Shell Scripting - Part 2

28 bytes removed, 08:32, 18 March 2021
INVESTIGATION 2: ADDITIONAL LOOPING STATEMENTS
# Edit '''line 6''' and replace with the following:<br><span style="font-family:courier;font-weight:bold;">((value=value+1))</span><br><br>'''Note:''' For those familiar with other programming languages, you can achieve the same results by using: '''((value++))'''<br><br>
# Save your editing session and exit the text editor (eg. with vi: press '''ESC''', then type ''':x''' followed by '''ENTER''').<br><br>
# '''Add execute permissionsRun''' for this file and '''run this Bash shell script'''again.<br><br>What do you noticethis time? <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-1</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>
13,420
edits