Difference between revisions of "Tutorial12: Shell Scripting - Part 2"

From CDOT Wiki
Jump to: navigation, search
(Tutorial Reference Material)
(Tutorial Reference Material)
Line 28: Line 28:
  
  
|  style="padding-left:15px;" |Redirection
+
|  style="padding-left:15px;" |Additional Control Flow Statements
* Standard Input (stdin)
+
* if-else
* Standard Output (stdout)
+
* if-elif-else
* Standard Error (stderr)
+
* for Loop
* Piping (pipes)<br><br>
+
* while Loop<br><br>
Multiple Commands
 
* Semicolon
 
* Grouping ( )
 
  
 +
|  style="padding-left:15px;"|Startup Files
 +
* /etc/profile
 +
* ~/.bash_profile
 +
* ~/.bashrc
 +
* ~/.bash_logout
  
|  style="padding-left:15px;"|Redirection Filters
 
* head
 
* tail
 
* sort
 
* grep
 
* cut
 
* tr
 
* wc
 
  
 
|colspan="1" style="padding-left:15px;" width="30%"|Brauer Instructional Videos:<ul><li></li></ul>
 
|colspan="1" style="padding-left:15px;" width="30%"|Brauer Instructional Videos:<ul><li></li></ul>

Revision as of 09:01, 3 July 2020

ADDITIONAL SHELL SCRIPTING


Main Objectives of this Practice Tutorial

  • x
  • x
  • x
  • x

Tutorial Reference Material

Course Notes
Linux Command/Shortcut Reference
YouTube Videos
Course Notes:


Additional Control Flow Statements
  • if-else
  • if-elif-else
  • for Loop
  • while Loop

Startup Files
  • /etc/profile
  • ~/.bash_profile
  • ~/.bashrc
  • ~/.bash_logout


Brauer Instructional Videos:

KEY CONCEPTS

Redirection

x


Piping (Using Pipes)

x


Multiple Commands Using Semicolon ; / Grouping Commands ( )

x

INVESTIGATION 1: BASICS OF REDIRECTION


In this section, you will learn how to ...



Perform the Following Steps:

  1. x

In the next investigation, you will ...

INVESTIGATION 2: REDIRECTION USING PIPES

In this section, you will learn how to ...


Perform the Following Steps:

  1. x

In the next investigation, you will ...

INVESTIGATION 3: MULTIPLE COMMANDS / COMMAND GROUPING

In this section, you will learn how to ...


Perform the Following Steps:

  1. x

LINUX PRACTICE QUESTIONS

The purpose of this section is to obtain extra practice to help with quizzes, your midterm, and your final exam.

Here is a link to the MS Word Document of ALL of the questions displayed below but with extra room to answer on the document to simulate a quiz:

https://ict.senecacollege.ca/~murray.saul/uli101/uli101_week12_practice.docx

Your instructor may take-up these questions during class. It is up to the student to attend classes in order to obtain the answers to the following questions. Your instructor will NOT provide these answers in any other form (eg. e-mail, etc).


Review Questions:

  1. x
  2. x
  3. x
  4. x
  5. x
  6. x
  7. x
  8. x
  9. Create a table listing each Linux command, useful options that were mentioned in the online assignment #1 and command purpose for the following Linux commands: x , x , x , x , x , x , x , x , x , x