SlideShare a Scribd company logo
1 of 13
Download to read offline
Unlock your Learning Potential !
ISO 9001:2008
Certified Company
Course details:
Course Code : MYT999
Course Name: Mastering Linux Shell
Scripting
Course duration: Fast track – 4 weeks
Regular weekdays – 6 weeks
Week End – 8 weeks
Training mode:
instructor led class training | Live virtual training
Contact: +91 90191 91856
Email:info@mytectra.com
Web: www.mytectra.com
Twitter : https://twitter.com/mytectra
Facebook: https://www.facebook.com/myTectra.Global
Linkedin: https://www.linkedin.com/company-beta/3030278/
Blog: http://mytectra.blogspot.in/
Linux Command Review
 Basic Linux commands
 General commands
 File and directory handling commands
 Filename generation characters
 I/O Redirection features
 Other commands
Getting Started
 What is a shell script?
 Development guidelines
 Creating and editing shell scripts
 Naming and storing shell scripts
 Executing shell scripts
 Exercise: Write a simple shell script
myTectra Learning Solutions private Limited
Bangalore-BTM Layout/
+91 90191 91856/ info@mytectra.com / www.mytectra.com
Using Variables
 Environment variables
 Local variables
 Assigning values to variables
 Assessing variable values
 Using quotes
 Delimiting variable names
 Echo control sequences
 Exercise: Add variables to a script
Integer Arithmetic
 Using the expr command
 Using the (( )) notation
 Exercise: Add integer arithmetic to a shell script
myTectra Learning Solutions private Limited
Bangalore-BTM Layout/
+91 90191 91856/ info@mytectra.com / www.mytectra.com
Handling Run Time Data
 The read command
 Command line arguments
 Exercise: Writing a generic shell script
 Exercise: Writing an interactive shell script
Condition Execution
 The if statement
 The test command
 Other test notations
 Default and substitute variables
 Exit status codes
 Exercise: Adding validation to previous scripts
myTectra Learning Solutions private Limited
Bangalore-BTM Layout/
+91 90191 91856/ info@mytectra.com / www.mytectra.com
Loop Constructs
 The while loop
 The until loop
 The for loop
 The while true and until false loops
 Loop control commands
 Exercise: Enhancing the previously written scripts
 Exercise: Writing a guess-the-number game
Multi-Branch Decisions
 The case statement
 Menu driven applications
 Exercise: Developing and writing a menu system
myTectra Learning Solutions private Limited
Bangalore-BTM Layout/
+91 90191 91856/ info@mytectra.com / www.mytectra.com
Functions
 What is a function?
 Syntax
 Examples
 Exercise: Add a function to a script
Interrupt Handling
 Interrupt signals
 Trapping interrupts
 Exercise: Adding traps to the menu script
Additional Features and Facilities
 The exec commands
 The includes notation
 More about loops
myTectra Learning Solutions private Limited
Bangalore-BTM Layout/
+91 90191 91856/ info@mytectra.com / www.mytectra.com
Arrays
 Here Documents
 Exercise: Create a here script
Redirection, Pipes and Filters
 Standard I/O and redirection
 Pipes
 Command separation
 Conditional execution
 Grouping Commands
 LINUX filters
 The tee command
myTectra Learning Solutions private Limited
Bangalore-BTM Layout/
+91 90191 91856/ info@mytectra.com / www.mytectra.com
Backup and Restore Utilities
 Archive devices
 The cpio command
 The tar command
 The dd command
Background Job Scheduling
 Starting background jobs
 Background tasks and the nohup command
 Process priorities and the nice command
 Job control
 Scheduling jobs with the at command
 Scheduling jobs with the cron command
myTectra Learning Solutions private Limited
Bangalore-BTM Layout/
+91 90191 91856/ info@mytectra.com / www.mytectra.com
Regular Expression Notation
 Regular expressions
 Extended regular expressions
Searching Files for Patterns
 The grep family of commands
 The grep command
 The fgrep command
 The egrep command
The Stream Editor - sed
 Introduction and command line syntax
 The sed program structure
 sed program processing
 Use sed commands
myTectra Learning Solutions private Limited
Bangalore-BTM Layout/
+91 90191 91856/ info@mytectra.com / www.mytectra.com
 sed addresses
 sed instructions
 Hold and get functions>/div>Advanced flow control
Commands for Comparing Files
 Compare two files with the cmp command
 Compare two files with the comm command
 Compare two files with the diff and sdiff commands
 Compare large files with the bdiff command
File Manipulation Commands
 The file command
 The head command
 The tail command
myTectra Learning Solutions private Limited
Bangalore-BTM Layout/
+91 90191 91856/ info@mytectra.com / www.mytectra.com
 The cut command
 The paste command
 The pr command
 The split and csplit commands
Identify and Translate Characters
 od - octal dump
 Use cat to display non-printing characters
 The expand and unexpand commands
 The tr command
Sorting Files
 The sort command
 Specify sort keys with –k
 Sort by column positions
 The uniq command
myTectra Learning Solutions private Limited
Bangalore-BTM Layout/
+91 90191 91856/ info@mytectra.com / www.mytectra.com
Introduction to the Pattern Scanning Utility - awk
 Introduction and command line syntax
 The awk program structure
 Use regular expressions
 Operators
 Simple patterns
 Extended patterns
 Comments
 Special patterns (BEGIN and END)
 Program variables
 Built-in variables
 User defined variables
myTectra Learning Solutions private Limited
Bangalore-BTM Layout/
+91 90191 91856/ info@mytectra.com / www.mytectra.com
 Mathematical operators
 Enhanced printing
 Handling user variables
awk Program Control Structures
 Program control structures
 The if construct
 The while and do ... while constructs
 The basic for construct
 Associative array handling
 Functions
 Built in functions
 The system function
 The getline function
 User defined functions
myTectra Learning Solutions private Limited
Bangalore-BTM Layout/
+91 90191 91856/ info@mytectra.com / www.mytectra.com

More Related Content

Similar to Master Linux Shell Scripting (40ch

Informatica course curriculum
Informatica course curriculumInformatica course curriculum
Informatica course curriculumAmit Sharma
 
A Day In The Life Of A Linux Administrator
A Day In The Life Of A Linux AdministratorA Day In The Life Of A Linux Administrator
A Day In The Life Of A Linux AdministratorEdureka!
 
Triton As NLP Model Inference Back-end
 Triton As NLP Model Inference Back-end Triton As NLP Model Inference Back-end
Triton As NLP Model Inference Back-endKo Ko
 
Net course content
Net course contentNet course content
Net course contentmindq
 
Configuration Management
Configuration ManagementConfiguration Management
Configuration Managementelliando dias
 
Ws08 R2 Itpro Session 1 Technical Overview Part1
Ws08 R2 Itpro Session 1 Technical Overview Part1Ws08 R2 Itpro Session 1 Technical Overview Part1
Ws08 R2 Itpro Session 1 Technical Overview Part1chenley
 
Securing Your Enterprise Web Apps with MongoDB Enterprise
Securing Your Enterprise Web Apps with MongoDB Enterprise Securing Your Enterprise Web Apps with MongoDB Enterprise
Securing Your Enterprise Web Apps with MongoDB Enterprise MongoDB
 
Introduction To Windows Power Shell
Introduction To Windows Power ShellIntroduction To Windows Power Shell
Introduction To Windows Power ShellMicrosoft TechNet
 
What is in it for a dba sql server 2012
What is in it for a dba   sql server 2012What is in it for a dba   sql server 2012
What is in it for a dba sql server 2012Deepthi Anantharam
 
Synergy 7.0 Sales 10312008
Synergy 7.0 Sales 10312008Synergy 7.0 Sales 10312008
Synergy 7.0 Sales 10312008Bill Duncan
 

Similar to Master Linux Shell Scripting (40ch (20)

Best Oracle Apps Technical Training in Bangalore.myTectra
Best Oracle Apps Technical Training in Bangalore.myTectraBest Oracle Apps Technical Training in Bangalore.myTectra
Best Oracle Apps Technical Training in Bangalore.myTectra
 
Ruby on Rails Training in Bangalore Classroom, Online
Ruby on Rails Training in Bangalore Classroom, OnlineRuby on Rails Training in Bangalore Classroom, Online
Ruby on Rails Training in Bangalore Classroom, Online
 
The Best Linux Administration Training in bangalore
The Best Linux Administration Training in bangaloreThe Best Linux Administration Training in bangalore
The Best Linux Administration Training in bangalore
 
Essentials of Professional VLSI Digital Design Training
Essentials of Professional VLSI Digital Design TrainingEssentials of Professional VLSI Digital Design Training
Essentials of Professional VLSI Digital Design Training
 
Best Informatica Training Form myTectra in Bangalore
Best Informatica Training Form myTectra in BangaloreBest Informatica Training Form myTectra in Bangalore
Best Informatica Training Form myTectra in Bangalore
 
Best Ansible Training in Bangalore. Join myTectra Now
Best Ansible Training in Bangalore. Join myTectra NowBest Ansible Training in Bangalore. Join myTectra Now
Best Ansible Training in Bangalore. Join myTectra Now
 
Best Web Development using Flask Training in Bangalore
Best Web Development using Flask Training in BangaloreBest Web Development using Flask Training in Bangalore
Best Web Development using Flask Training in Bangalore
 
The Best Devops Training in Bangalore From myTectra
The Best Devops Training in Bangalore From myTectraThe Best Devops Training in Bangalore From myTectra
The Best Devops Training in Bangalore From myTectra
 
Informatica course curriculum
Informatica course curriculumInformatica course curriculum
Informatica course curriculum
 
Devops training institute in bangalore
Devops training institute in bangaloreDevops training institute in bangalore
Devops training institute in bangalore
 
A Day In The Life Of A Linux Administrator
A Day In The Life Of A Linux AdministratorA Day In The Life Of A Linux Administrator
A Day In The Life Of A Linux Administrator
 
Triton As NLP Model Inference Back-end
 Triton As NLP Model Inference Back-end Triton As NLP Model Inference Back-end
Triton As NLP Model Inference Back-end
 
The Best Ruby Training In Bangalore From myTectra
The Best Ruby Training In Bangalore From myTectra The Best Ruby Training In Bangalore From myTectra
The Best Ruby Training In Bangalore From myTectra
 
Net course content
Net course contentNet course content
Net course content
 
Configuration Management
Configuration ManagementConfiguration Management
Configuration Management
 
Ws08 R2 Itpro Session 1 Technical Overview Part1
Ws08 R2 Itpro Session 1 Technical Overview Part1Ws08 R2 Itpro Session 1 Technical Overview Part1
Ws08 R2 Itpro Session 1 Technical Overview Part1
 
Securing Your Enterprise Web Apps with MongoDB Enterprise
Securing Your Enterprise Web Apps with MongoDB Enterprise Securing Your Enterprise Web Apps with MongoDB Enterprise
Securing Your Enterprise Web Apps with MongoDB Enterprise
 
Introduction To Windows Power Shell
Introduction To Windows Power ShellIntroduction To Windows Power Shell
Introduction To Windows Power Shell
 
What is in it for a dba sql server 2012
What is in it for a dba   sql server 2012What is in it for a dba   sql server 2012
What is in it for a dba sql server 2012
 
Synergy 7.0 Sales 10312008
Synergy 7.0 Sales 10312008Synergy 7.0 Sales 10312008
Synergy 7.0 Sales 10312008
 

More from myTectra Learning Solutions Private Ltd

More from myTectra Learning Solutions Private Ltd (20)

Best Oracle PL SQL Training in Bangalore. Join myTectra
Best Oracle PL SQL Training in Bangalore. Join myTectraBest Oracle PL SQL Training in Bangalore. Join myTectra
Best Oracle PL SQL Training in Bangalore. Join myTectra
 
Best ExtJS Training in Bangalore. Join myTectra Now
Best ExtJS Training in Bangalore. Join myTectra NowBest ExtJS Training in Bangalore. Join myTectra Now
Best ExtJS Training in Bangalore. Join myTectra Now
 
The MapReduce Design Patterns Training in Banhgalore
The MapReduce Design Patterns Training in BanhgaloreThe MapReduce Design Patterns Training in Banhgalore
The MapReduce Design Patterns Training in Banhgalore
 
Statistics Essentials for Analytics Training in Bangalore
Statistics Essentials for Analytics Training in BangaloreStatistics Essentials for Analytics Training in Bangalore
Statistics Essentials for Analytics Training in Bangalore
 
C Programming and Data Structures Training In Bangalore
C Programming and Data Structures Training In BangaloreC Programming and Data Structures Training In Bangalore
C Programming and Data Structures Training In Bangalore
 
The Predictive Modelling in R Training in Bangalore
The Predictive Modelling in R Training in BangaloreThe Predictive Modelling in R Training in Bangalore
The Predictive Modelling in R Training in Bangalore
 
The Best Comprehensive MapReduce Training in Bangalore
The Best Comprehensive MapReduce Training in BangaloreThe Best Comprehensive MapReduce Training in Bangalore
The Best Comprehensive MapReduce Training in Bangalore
 
Decision Tree Modeling Using R Training in Bangalore
Decision Tree Modeling Using R Training in BangaloreDecision Tree Modeling Using R Training in Bangalore
Decision Tree Modeling Using R Training in Bangalore
 
The Persistence with Hibernate Training in Bangalore
The Persistence with Hibernate Training in BangaloreThe Persistence with Hibernate Training in Bangalore
The Persistence with Hibernate Training in Bangalore
 
Design Patterns Training From myTectra in Bangalore
Design Patterns Training From myTectra in BangaloreDesign Patterns Training From myTectra in Bangalore
Design Patterns Training From myTectra in Bangalore
 
The Apache Solr Training From myTectra in Bangalore
The Apache Solr Training From myTectra in BangaloreThe Apache Solr Training From myTectra in Bangalore
The Apache Solr Training From myTectra in Bangalore
 
The Best Microsoft Project 2013 Training in Bangalore
The Best Microsoft Project 2013 Training in BangaloreThe Best Microsoft Project 2013 Training in Bangalore
The Best Microsoft Project 2013 Training in Bangalore
 
Six Sigma Green Belt Training in Bangalore,By myTectra
Six Sigma Green Belt Training in Bangalore,By myTectraSix Sigma Green Belt Training in Bangalore,By myTectra
Six Sigma Green Belt Training in Bangalore,By myTectra
 
The Measuring Social Media ROI Training in Bangalore
The Measuring Social Media ROI Training in BangaloreThe Measuring Social Media ROI Training in Bangalore
The Measuring Social Media ROI Training in Bangalore
 
CRM Salesforce Training From myTectra in Bangalore
CRM Salesforce Training From myTectra in BangaloreCRM Salesforce Training From myTectra in Bangalore
CRM Salesforce Training From myTectra in Bangalore
 
The Apache Ambari Training From myTectra in Bangalore
The Apache Ambari Training From myTectra in BangaloreThe Apache Ambari Training From myTectra in Bangalore
The Apache Ambari Training From myTectra in Bangalore
 
Analytics For Retail Banking Training in Bangalore
Analytics For Retail Banking Training in BangaloreAnalytics For Retail Banking Training in Bangalore
Analytics For Retail Banking Training in Bangalore
 
Prince2 Foundation Practitioner Training in Bangalore
Prince2 Foundation Practitioner Training in BangalorePrince2 Foundation Practitioner Training in Bangalore
Prince2 Foundation Practitioner Training in Bangalore
 
The Best IBM Bluemix Training From myTectra in Bangalore
The Best IBM Bluemix Training From myTectra in BangaloreThe Best IBM Bluemix Training From myTectra in Bangalore
The Best IBM Bluemix Training From myTectra in Bangalore
 
Financial Modeling With Advanced Valuation Techniques
Financial Modeling With Advanced Valuation TechniquesFinancial Modeling With Advanced Valuation Techniques
Financial Modeling With Advanced Valuation Techniques
 

Recently uploaded

A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...RKavithamani
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 

Recently uploaded (20)

TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 

Master Linux Shell Scripting (40ch

  • 1. Unlock your Learning Potential ! ISO 9001:2008 Certified Company Course details: Course Code : MYT999 Course Name: Mastering Linux Shell Scripting Course duration: Fast track – 4 weeks Regular weekdays – 6 weeks Week End – 8 weeks Training mode: instructor led class training | Live virtual training Contact: +91 90191 91856 Email:info@mytectra.com Web: www.mytectra.com Twitter : https://twitter.com/mytectra Facebook: https://www.facebook.com/myTectra.Global Linkedin: https://www.linkedin.com/company-beta/3030278/ Blog: http://mytectra.blogspot.in/
  • 2. Linux Command Review  Basic Linux commands  General commands  File and directory handling commands  Filename generation characters  I/O Redirection features  Other commands Getting Started  What is a shell script?  Development guidelines  Creating and editing shell scripts  Naming and storing shell scripts  Executing shell scripts  Exercise: Write a simple shell script myTectra Learning Solutions private Limited Bangalore-BTM Layout/ +91 90191 91856/ info@mytectra.com / www.mytectra.com
  • 3. Using Variables  Environment variables  Local variables  Assigning values to variables  Assessing variable values  Using quotes  Delimiting variable names  Echo control sequences  Exercise: Add variables to a script Integer Arithmetic  Using the expr command  Using the (( )) notation  Exercise: Add integer arithmetic to a shell script myTectra Learning Solutions private Limited Bangalore-BTM Layout/ +91 90191 91856/ info@mytectra.com / www.mytectra.com
  • 4. Handling Run Time Data  The read command  Command line arguments  Exercise: Writing a generic shell script  Exercise: Writing an interactive shell script Condition Execution  The if statement  The test command  Other test notations  Default and substitute variables  Exit status codes  Exercise: Adding validation to previous scripts myTectra Learning Solutions private Limited Bangalore-BTM Layout/ +91 90191 91856/ info@mytectra.com / www.mytectra.com
  • 5. Loop Constructs  The while loop  The until loop  The for loop  The while true and until false loops  Loop control commands  Exercise: Enhancing the previously written scripts  Exercise: Writing a guess-the-number game Multi-Branch Decisions  The case statement  Menu driven applications  Exercise: Developing and writing a menu system myTectra Learning Solutions private Limited Bangalore-BTM Layout/ +91 90191 91856/ info@mytectra.com / www.mytectra.com
  • 6. Functions  What is a function?  Syntax  Examples  Exercise: Add a function to a script Interrupt Handling  Interrupt signals  Trapping interrupts  Exercise: Adding traps to the menu script Additional Features and Facilities  The exec commands  The includes notation  More about loops myTectra Learning Solutions private Limited Bangalore-BTM Layout/ +91 90191 91856/ info@mytectra.com / www.mytectra.com
  • 7. Arrays  Here Documents  Exercise: Create a here script Redirection, Pipes and Filters  Standard I/O and redirection  Pipes  Command separation  Conditional execution  Grouping Commands  LINUX filters  The tee command myTectra Learning Solutions private Limited Bangalore-BTM Layout/ +91 90191 91856/ info@mytectra.com / www.mytectra.com
  • 8. Backup and Restore Utilities  Archive devices  The cpio command  The tar command  The dd command Background Job Scheduling  Starting background jobs  Background tasks and the nohup command  Process priorities and the nice command  Job control  Scheduling jobs with the at command  Scheduling jobs with the cron command myTectra Learning Solutions private Limited Bangalore-BTM Layout/ +91 90191 91856/ info@mytectra.com / www.mytectra.com
  • 9. Regular Expression Notation  Regular expressions  Extended regular expressions Searching Files for Patterns  The grep family of commands  The grep command  The fgrep command  The egrep command The Stream Editor - sed  Introduction and command line syntax  The sed program structure  sed program processing  Use sed commands myTectra Learning Solutions private Limited Bangalore-BTM Layout/ +91 90191 91856/ info@mytectra.com / www.mytectra.com
  • 10.  sed addresses  sed instructions  Hold and get functions>/div>Advanced flow control Commands for Comparing Files  Compare two files with the cmp command  Compare two files with the comm command  Compare two files with the diff and sdiff commands  Compare large files with the bdiff command File Manipulation Commands  The file command  The head command  The tail command myTectra Learning Solutions private Limited Bangalore-BTM Layout/ +91 90191 91856/ info@mytectra.com / www.mytectra.com
  • 11.  The cut command  The paste command  The pr command  The split and csplit commands Identify and Translate Characters  od - octal dump  Use cat to display non-printing characters  The expand and unexpand commands  The tr command Sorting Files  The sort command  Specify sort keys with –k  Sort by column positions  The uniq command myTectra Learning Solutions private Limited Bangalore-BTM Layout/ +91 90191 91856/ info@mytectra.com / www.mytectra.com
  • 12. Introduction to the Pattern Scanning Utility - awk  Introduction and command line syntax  The awk program structure  Use regular expressions  Operators  Simple patterns  Extended patterns  Comments  Special patterns (BEGIN and END)  Program variables  Built-in variables  User defined variables myTectra Learning Solutions private Limited Bangalore-BTM Layout/ +91 90191 91856/ info@mytectra.com / www.mytectra.com
  • 13.  Mathematical operators  Enhanced printing  Handling user variables awk Program Control Structures  Program control structures  The if construct  The while and do ... while constructs  The basic for construct  Associative array handling  Functions  Built in functions  The system function  The getline function  User defined functions myTectra Learning Solutions private Limited Bangalore-BTM Layout/ +91 90191 91856/ info@mytectra.com / www.mytectra.com