Changes

Jump to: navigation, search

Tutorial12: Shell Scripting - Part 2

22 bytes added, 12:14, 21 March 2021
INVESTIGATION 3: exit AND break STATEMENTS
'''THE EXIT STATEMENT'''
The '''exit''' statement is used to terminate a shell script.<br>This statement is very useful when combined with logic in a shell script to display<br>a an '''error message''' <br>if the command was '''not run correctlyimproperly executed''' and '''terminate ''' the running of the shell script.<br><br>The ''exit'' command can contain an argument return a ''value'' to provide the '''exit status'''<br>of your shell script (i.e. TRUE or FALSE value).<br><br>
'''Perform the Following Steps:'''
13,420
edits

Navigation menu