Open main menu

CDOT Wiki β

Changes

Tutorial12: Shell Scripting - Part 2

12 bytes added, 11:05, 29 December 2020
INVESTIGATION 2: ADDITIONAL LOOPING STATEMENTS
# Save your editing session and exit the text editor (eg. with vi: press '''ESC''', then type ''':wx''' followed by '''ENTER''').<br><br>
# Run your shell script by issuing:<br><span style="color:blue;font-weight:bold;font-family:courier;">./for-5.bash</span><br><br>
# When prompted, enter a letter instead of a number. What happens?<br>Does the shell script allow you to enter an invalid grade like '''200 ''' or '''-6'''?<br><br>
:In the next investigation, you will learn to create and test-out the '''~/.bashrc''' start-up file to customize your Bash shell.
13,420
edits