SlideShare a Scribd company logo
1 of 16
Shell Scripting
Chitrakshi Jaiswal
• Basics ………..…3
• First script ______________________________ ………….…4
• Variables and Comments ………….…5
• System defined Variables __________________ ………….…6
• User defined variables ____________________ ………….…7
• Use of Backslash character ________________ ………….…9
• Backtick Symbol _________________________ ………….…11
• Read User Input ………….…12
• Use of “-p” (Read as it is) __________________ ………….…13
• For multiple Variables ____________________ ………….…14
• Hide input _____________________________ ………….…15
2
PART-1
Basics
Q. What is shell script and how to check shells of your system ?
Ans. A shell script is a text file that contains a sequence of commands for
a Linux-based operating system. It's called a shell script because it
combines into a "script" in a single file a sequence of commands that
would otherwise have to be presented to the system from a keyboard
one at a time.
To check shell (operating system's command interpreter ) use following
command “cat /etc/shells “
3
First Script…
Let’s start our first script with “echo” command……..
Task : To print “my world”
Step 1: vi test1.sh (“test1.sh” is my script name)
Step 2: Write following commands in your file
#! /bin/bash (For Interpreter -Specify shell to execute program)
echo “my world” (Here, “my world” is desired o/p; save and exit this
file)
*Always give execution permission to your SCRIPTS
• chmod +x test1.sh
Output: Now, Run your script
sh test1.sh ---------->
4
Variables and comments
• Comments : Use # to make anything commented. Generally it uses to
explain about your commands or to give details about your script.
• Variables : Which store some data in itself. Here, we have 2 types of
variables.
a) System defined
b) User defined
5
a. System defined Variables are created and maintained by your Linux
system, they are pre-defined in your system.
• Generally these variables are defined in CAPITAL LETTERS.
• We can tap into these environment variables from within your scripts by
using the environment variable’s name preceded by a dollar sign. This is
demonstrated in the following script 
6
b. User defined Variables are case sensitive, so the variable Var1 is different from
the variable var1.
• Values are assigned to user variables using an equal sign. (There is no space
b/w var and def. var)
• Here are a few examples of assigning values to user variables:
i. var1=10
ii. var2=-57
iii. var3=testing
iv. var4=“still more testing”
• The shell script automatically determines the data type used for the variable
value.
7
Example 1:
(Just like system variables, user variables can be referenced using the
dollar sign)
Output : (Each time the variable is referenced, it produces the value
currently assigned to it.)
8
Example 2: (Look at what happens in this example)
Output :
• That is obviously not what was intended. Whenever the script sees a dollar
sign within quotes, it assumes you’re referencing a variable. In this example
the script attempted to display the variable $1 (which was not defined),
and then the number 5. To display an actual dollar sign, you must
precede it with a backslash character.
9
• The backslash allowed the shell script to interpret the dollar sign as
an actual dollar sign, and not a variable.
Example 3:
Output :
10
Example 4: (Use of Backtick symbol (`) in shell variables)
The shell runs the command within the backticks and assigns the output to
the variable testing
Output :
Note : In bash you can also use the alternative $(…) syntax in place of
backtick (`),which has the advantage of being re-entrant.
11
Read User Input
• read command is used for getting user input.
Example 1:
Output : (Here, cj is the user input)
12
When we want input at same place  Use “-p”
Example 2:
Output : (Compare this with Example1)
13
For Multiple variables/User’s inputs 
Example 3 :
Output :
14
When we don’t want to show input  Use “-s”
Example 4 :
Here, I have used an extra echo
which makes output like this. (w/o echo
o/p ‘ll be like this)
Output : (Here, Input for Password is not visible)
15
PART-2
To be continued……….
16
• Array
• Input - Output redirection
• Pipes
• Control structures (if)
• Loops

More Related Content

What's hot (17)

Operators used in vb.net
Operators used in vb.netOperators used in vb.net
Operators used in vb.net
 
Bn1017 a demo rdbms
Bn1017 a demo  rdbmsBn1017 a demo  rdbms
Bn1017 a demo rdbms
 
Functions oracle (pl/sql)
Functions oracle (pl/sql)Functions oracle (pl/sql)
Functions oracle (pl/sql)
 
Lesson 4 constant
Lesson 4  constantLesson 4  constant
Lesson 4 constant
 
Subroutines
SubroutinesSubroutines
Subroutines
 
Mca ii dfs u-2 array records and pointer
Mca ii dfs u-2 array records and pointerMca ii dfs u-2 array records and pointer
Mca ii dfs u-2 array records and pointer
 
Subroutines in perl
Subroutines in perlSubroutines in perl
Subroutines in perl
 
Unix ppt
Unix pptUnix ppt
Unix ppt
 
Lesson 2 php data types
Lesson 2   php data typesLesson 2   php data types
Lesson 2 php data types
 
Conditionalstatement
ConditionalstatementConditionalstatement
Conditionalstatement
 
PerlTesting
PerlTestingPerlTesting
PerlTesting
 
Php1
Php1Php1
Php1
 
Storage classes
Storage classesStorage classes
Storage classes
 
Generic programming in java
Generic programming in javaGeneric programming in java
Generic programming in java
 
testing add
testing addtesting add
testing add
 
Subroutines
SubroutinesSubroutines
Subroutines
 
Oracle - Program with PL/SQL - Lession 02
Oracle - Program with PL/SQL - Lession 02Oracle - Program with PL/SQL - Lession 02
Oracle - Program with PL/SQL - Lession 02
 

Similar to Shell scripting - Basic (PART -1)

Esoft Metro Campus - Certificate in c / c++ programming
Esoft Metro Campus - Certificate in c / c++ programmingEsoft Metro Campus - Certificate in c / c++ programming
Esoft Metro Campus - Certificate in c / c++ programmingRasan Samarasinghe
 
Standard coding practices
Standard coding practicesStandard coding practices
Standard coding practicesAnilkumar Patil
 
Introduction to Programming Fundamentals 3.pdf
Introduction to Programming Fundamentals 3.pdfIntroduction to Programming Fundamentals 3.pdf
Introduction to Programming Fundamentals 3.pdfAbrehamKassa
 
Escape Sequences and Variables
Escape Sequences and VariablesEscape Sequences and Variables
Escape Sequences and Variablesyarkhosh
 
Chapter 2: Introduction to Bash Scripting
Chapter 2: Introduction to Bash ScriptingChapter 2: Introduction to Bash Scripting
Chapter 2: Introduction to Bash Scriptingazzamhadeel89
 
C Language (All Concept)
C Language (All Concept)C Language (All Concept)
C Language (All Concept)sachindane
 
Lecture4 php by okello erick
Lecture4 php by okello erickLecture4 php by okello erick
Lecture4 php by okello erickokelloerick
 
unit 1 cpds.pptx
unit 1 cpds.pptxunit 1 cpds.pptx
unit 1 cpds.pptxmadhurij54
 
Dive into Python Functions Fundamental Concepts.pdf
Dive into Python Functions Fundamental Concepts.pdfDive into Python Functions Fundamental Concepts.pdf
Dive into Python Functions Fundamental Concepts.pdfSudhanshiBakre1
 

Similar to Shell scripting - Basic (PART -1) (20)

C Language Part 1
C Language Part 1C Language Part 1
C Language Part 1
 
Introduction to C#
Introduction to C#Introduction to C#
Introduction to C#
 
Esoft Metro Campus - Certificate in c / c++ programming
Esoft Metro Campus - Certificate in c / c++ programmingEsoft Metro Campus - Certificate in c / c++ programming
Esoft Metro Campus - Certificate in c / c++ programming
 
Standard coding practices
Standard coding practicesStandard coding practices
Standard coding practices
 
Introduction to Programming Fundamentals 3.pdf
Introduction to Programming Fundamentals 3.pdfIntroduction to Programming Fundamentals 3.pdf
Introduction to Programming Fundamentals 3.pdf
 
PPT 19.pptx
PPT 19.pptxPPT 19.pptx
PPT 19.pptx
 
Escape Sequences and Variables
Escape Sequences and VariablesEscape Sequences and Variables
Escape Sequences and Variables
 
Chapter 2: Introduction to Bash Scripting
Chapter 2: Introduction to Bash ScriptingChapter 2: Introduction to Bash Scripting
Chapter 2: Introduction to Bash Scripting
 
C programming session7
C programming  session7C programming  session7
C programming session7
 
C programming session7
C programming  session7C programming  session7
C programming session7
 
qb unit2 solve eem201.pdf
qb unit2 solve eem201.pdfqb unit2 solve eem201.pdf
qb unit2 solve eem201.pdf
 
C Language (All Concept)
C Language (All Concept)C Language (All Concept)
C Language (All Concept)
 
basics dart.pdf
basics dart.pdfbasics dart.pdf
basics dart.pdf
 
Shell scripting
Shell scriptingShell scripting
Shell scripting
 
C_plus_plus
C_plus_plusC_plus_plus
C_plus_plus
 
Lecture4 php by okello erick
Lecture4 php by okello erickLecture4 php by okello erick
Lecture4 php by okello erick
 
Class 8 - Java.pptx
Class 8 - Java.pptxClass 8 - Java.pptx
Class 8 - Java.pptx
 
unit 1 cpds.pptx
unit 1 cpds.pptxunit 1 cpds.pptx
unit 1 cpds.pptx
 
Programming in c by pkv
Programming in c by pkvProgramming in c by pkv
Programming in c by pkv
 
Dive into Python Functions Fundamental Concepts.pdf
Dive into Python Functions Fundamental Concepts.pdfDive into Python Functions Fundamental Concepts.pdf
Dive into Python Functions Fundamental Concepts.pdf
 

Recently uploaded

Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur EscortsRussian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduitsrknatarajan
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)simmis5
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdfKamal Acharya
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesPrabhanshu Chaturvedi
 

Recently uploaded (20)

Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur EscortsRussian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and Properties
 

Shell scripting - Basic (PART -1)

  • 2. • Basics ………..…3 • First script ______________________________ ………….…4 • Variables and Comments ………….…5 • System defined Variables __________________ ………….…6 • User defined variables ____________________ ………….…7 • Use of Backslash character ________________ ………….…9 • Backtick Symbol _________________________ ………….…11 • Read User Input ………….…12 • Use of “-p” (Read as it is) __________________ ………….…13 • For multiple Variables ____________________ ………….…14 • Hide input _____________________________ ………….…15 2 PART-1
  • 3. Basics Q. What is shell script and how to check shells of your system ? Ans. A shell script is a text file that contains a sequence of commands for a Linux-based operating system. It's called a shell script because it combines into a "script" in a single file a sequence of commands that would otherwise have to be presented to the system from a keyboard one at a time. To check shell (operating system's command interpreter ) use following command “cat /etc/shells “ 3
  • 4. First Script… Let’s start our first script with “echo” command…….. Task : To print “my world” Step 1: vi test1.sh (“test1.sh” is my script name) Step 2: Write following commands in your file #! /bin/bash (For Interpreter -Specify shell to execute program) echo “my world” (Here, “my world” is desired o/p; save and exit this file) *Always give execution permission to your SCRIPTS • chmod +x test1.sh Output: Now, Run your script sh test1.sh ----------> 4
  • 5. Variables and comments • Comments : Use # to make anything commented. Generally it uses to explain about your commands or to give details about your script. • Variables : Which store some data in itself. Here, we have 2 types of variables. a) System defined b) User defined 5
  • 6. a. System defined Variables are created and maintained by your Linux system, they are pre-defined in your system. • Generally these variables are defined in CAPITAL LETTERS. • We can tap into these environment variables from within your scripts by using the environment variable’s name preceded by a dollar sign. This is demonstrated in the following script  6
  • 7. b. User defined Variables are case sensitive, so the variable Var1 is different from the variable var1. • Values are assigned to user variables using an equal sign. (There is no space b/w var and def. var) • Here are a few examples of assigning values to user variables: i. var1=10 ii. var2=-57 iii. var3=testing iv. var4=“still more testing” • The shell script automatically determines the data type used for the variable value. 7
  • 8. Example 1: (Just like system variables, user variables can be referenced using the dollar sign) Output : (Each time the variable is referenced, it produces the value currently assigned to it.) 8
  • 9. Example 2: (Look at what happens in this example) Output : • That is obviously not what was intended. Whenever the script sees a dollar sign within quotes, it assumes you’re referencing a variable. In this example the script attempted to display the variable $1 (which was not defined), and then the number 5. To display an actual dollar sign, you must precede it with a backslash character. 9
  • 10. • The backslash allowed the shell script to interpret the dollar sign as an actual dollar sign, and not a variable. Example 3: Output : 10
  • 11. Example 4: (Use of Backtick symbol (`) in shell variables) The shell runs the command within the backticks and assigns the output to the variable testing Output : Note : In bash you can also use the alternative $(…) syntax in place of backtick (`),which has the advantage of being re-entrant. 11
  • 12. Read User Input • read command is used for getting user input. Example 1: Output : (Here, cj is the user input) 12
  • 13. When we want input at same place  Use “-p” Example 2: Output : (Compare this with Example1) 13
  • 14. For Multiple variables/User’s inputs  Example 3 : Output : 14
  • 15. When we don’t want to show input  Use “-s” Example 4 : Here, I have used an extra echo which makes output like this. (w/o echo o/p ‘ll be like this) Output : (Here, Input for Password is not visible) 15
  • 16. PART-2 To be continued………. 16 • Array • Input - Output redirection • Pipes • Control structures (if) • Loops