Changes

Jump to: navigation, search

Tutorial 10 - Shell Scripting - Part 1

30 bytes removed, 12:16, 8 June 2023
m
Protected "Tutorial 10 - Shell Scripting - Part 1": OER transfer ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))
Content under construction
 
= INTRODUCTION TO SHELL SCRIPTING =
===Main Objectives of this Practice Tutorial===
= INVESTIGATION 1: CREATING A SHELL SCRIPT =
<span style="color:red;">'''ATTENTION''': The due date for successfully completing this tutorial (i.e. tutorial 10) is by Friday, December 15 April 21 @ 11:59 PM (Week 14).</span><br>
In this investigation, you will learn how to create and run a '''Bash Shell script'''.
# Issue the following Linux command to test another condition:<br><span style="color:blue;font-weight:bold;font-family:courier;">test $course = "osl640"</span><br><br>
# Issue the following Linux command to view the ''exit status'' of the previously-issued '''test''' command:<br><span style="color:blue;font-weight:bold;font-family:courier;">echo $?</span><br><br>Based on the ''exit status'' value, is the result TRUE or FALSE?<br>The value is non-zero (FALSE) since UPPERCASE characters<br>are different than lowercase characters.<br><br>
# Issue the following Linux command to test another condition:<br><span style="color:blue;font-weight:bold;font-family:courier;">test $course != "osl640"</span><br><br>
# Issue a linux command to display the value of '''$?'''<br><br>What is the result? Why?<br><br>
# Issue the following Linux command to test a condition involving earlier assigned variables:<br><span style="color:blue;font-weight:bold;font-family:courier;">test $number1 > $number2</span><br><br>

Navigation menu