Changes

Jump to: navigation, search

Tutorial12: Shell Scripting - Part 2

1 byte added, 07:46, 21 March 2021
INVESTIGATION 3: exit AND break STATEMENTS
'''Perform the Following Steps:'''
# '''Login''' to your Make certain that you are logged into matrix account.<br><br># Issue a Linux command to <u>confirm</u> Confirm that you are currently located in the '''advanced''' directory.<br><br>
# Use a text editor like vi or nano to create the text file called '''exit.bash''' (eg. <span style="color:blue;font-weight:bold;font-family:courier;">vi exit.bash</span>)<br><br>
# Enter the following lines in the '''exit.bash''' shell script:<br><span style="font-family:courier;font-weight:bold;">#!/bin/bash<br><br>if [ $# -ne 1 ]<br>then<br> &nbsp; echo "USAGE: $0 [arg]" &gt;&amp;2<br>exit 1<br>fi<br><br>echo "The argument is: $1"</span><br><br>
13,420
edits

Navigation menu