SlideShare una empresa de Scribd logo
1 de 6
Descargar para leer sin conexión
BASH SHELL SCRIPT
1- Introduction to Shell
What is shell
Installation of shell
Shell features
Bash Keywords
Built-in Commands
Linux Commands
Specialized Navigation and History Commands
Shell Aliases
Bash Hash Table
The Set and Shopt Commands
Key binding with bind command
The Colon Command
Long and Multi-line Command
2- Script Basics
Writing small Script
How to execute a script
Creating a Well-Behaved Script
The Header
Global Declarations
Sanity Checks
The Main Script
Cleanup
Stopping a Script
3- Variables
Variable basics
Predefined variables
System variables
Special shell variable
Customizing shell prompt
Variable attributes
Arrays variable
local variable
Exporting variables
Use of quotations
Escape characters
Advance Bash Shell Scripting
The eval command
Reading keyboard input
Basic redirection and pipe
File descriptors
4- Expressions
Basic if command
let Features
File test operators
Arithmetic comparison operators
String comparison operators
Arithmetic comparison with double parentheses
Parameter substitution and expansion
Brackets and Extended brackets test construct
Curly brackets construct
Parentheses and double parentheses
Regular expression
Extended regular expression
POSIX character classes
Globbing options
Here Documents
Logical expressions
5- Compound Commands
Command Status Codes
if Command
case Command
while Loop
until Loop
for Loops
Embedded let
Grouping Commands
6- Debugging and Version Control
Shell Debugging Features
Shell Debugging Options
Version Control (CVS)
Watching Running Scripts
Timing Execution with Time
Creating Man Pages
Shell Archives
tee Command Switches
Linux Time Command Switches
Bash and Linux Time Command Format Codes
7- Parameters and getopts
Positional Parameters
The getopts Command
getopts internal variables
The getopt Command
8- Job Control and Signals
Job Control
Signals
The suspend Command
Traps
Exit Handlers
The killall Command
Being Nice
Process Status
9- Text File Basics
Working with Pathnames
File Truncation
Identifying Files
Creating and Deleting Files
Moving and Copying Files
More Information About Files
Verifying Files
Splitting Large Files
Tabs and Spaces
Temporary Files
Lock Files
Named Pipes
Process Substitution
Opening Files
Using head and tail
File Statistics
Cutting
Pasting
Columns
Folding
Joining
Merging
10- Text File Processing
Finding Lines
Locating Files
Finding Files
Sorting
Character Editing (tr)
Compressing Files
11- Console Scripting
The Linux Console
The Console Keyboard
The Console Display
select Menus
Custom Menus
12- Functions and Script Execution
Shell Functions
Local Variables
Recursion and Nested Functions
Function Attributes
Running Scripts
The Linux Execution Environment
The Source Command (.)
Switching Scripts with exec
13- Shell Security
The Basic Linux Security Model
Knowing Who You Are (id)
Transferring Ownership (chown/chgrp)
Changing Access Rights (chmod)
Default Access Rights (umask)
setuid/setgid and Scripts
The chroot Command
Resource Limits (ulimit)
Restricted Shells
Secure File Deletion
14- Network Programming
Sockets
Client-Server and Peer-to-Peer
Network Clients
CGI Scripting
CGI Environment Variables
Processing Forms
Basic Web Page Stripping
Transferring Files Between Accounts (wget)
Transferring Files with FTP
Transferring Files with Secure FTP (sftp)
15- Sed 'Stream Editor'
The essential command: s for substitution
Substitute Flags
/g - Global replacement
/1, /2, etc. Specifying which occurrence
Write to a file with /w filename
Combining substitution flags
Arguments and invocation of sed
Multiple commands with -e command
sed -f scriptname
sed in shell script
A sed interpreter script
Addresses and Ranges of Text
Restricting to a line number
Patterns
Ranges by line number
Ranges by patterns
Delete with d
Grouping with { and }
Multi-Line Patterns
16- Awk Programming
Getting Started
The Structure of an A WK Program
Running an A WK Program
Computing and Printing
Printing Line Numbers
Putting Text in the Output
Sorting the Output
Selection by Text Content
Combinations of Patterns
BEGIN and END
Computing with A WK
Computing Sums and Averages
String Concatenation
Built-in Functions
Counting Lines, Words, and Characters
Control-Flow Statements
Expressions as Patterns
String-Matching, Compound and Range Patterns
Regular Expressions
The printf Statement
Output into Files
Contact Us
REXTON IT SOLUTIONS
C-28, Sector 2, Near Nirula Hotel, Noida-201301
Tel: 01204117766
Cell: +91 9999051150
Email Id: Contact@rextonitsolutions.com
Website: www.Rextonitsolutions.com

Más contenido relacionado

La actualidad más candente

Introduction to Shell script
Introduction to Shell scriptIntroduction to Shell script
Introduction to Shell scriptBhavesh Padharia
 
Module 02 Using Linux Command Shell
Module 02 Using Linux Command ShellModule 02 Using Linux Command Shell
Module 02 Using Linux Command ShellTushar B Kute
 
Linux shell env
Linux shell envLinux shell env
Linux shell envRahul Pola
 
Quick Guide with Linux Command Line
Quick Guide with Linux Command LineQuick Guide with Linux Command Line
Quick Guide with Linux Command LineAnuchit Chalothorn
 
Basic command ppt
Basic command pptBasic command ppt
Basic command pptRohit Kumar
 
Linux Basic Commands
Linux Basic CommandsLinux Basic Commands
Linux Basic CommandsHanan Nmr
 
The Linux Command Cheat Sheet
The Linux Command Cheat SheetThe Linux Command Cheat Sheet
The Linux Command Cheat SheetTola LENG
 
Git/Github/Bitbucket@TalkIt. Humber college.
Git/Github/Bitbucket@TalkIt. Humber college.Git/Github/Bitbucket@TalkIt. Humber college.
Git/Github/Bitbucket@TalkIt. Humber college.Andrew Romanenco
 
Important Linux Commands
Important Linux CommandsImportant Linux Commands
Important Linux CommandsArun Sharma
 
Linux basic commands
Linux basic commandsLinux basic commands
Linux basic commandsSagar Kumar
 
Course 102: Lecture 10: Learning About the Shell
Course 102: Lecture 10: Learning About the Shell Course 102: Lecture 10: Learning About the Shell
Course 102: Lecture 10: Learning About the Shell Ahmed El-Arabawy
 

La actualidad más candente (20)

Shell programming
Shell programmingShell programming
Shell programming
 
Introduction to Shell script
Introduction to Shell scriptIntroduction to Shell script
Introduction to Shell script
 
Module 02 Using Linux Command Shell
Module 02 Using Linux Command ShellModule 02 Using Linux Command Shell
Module 02 Using Linux Command Shell
 
Linux shell env
Linux shell envLinux shell env
Linux shell env
 
Quick Guide with Linux Command Line
Quick Guide with Linux Command LineQuick Guide with Linux Command Line
Quick Guide with Linux Command Line
 
Shell scripting
Shell scriptingShell scripting
Shell scripting
 
SHELL PROGRAMMING
SHELL PROGRAMMINGSHELL PROGRAMMING
SHELL PROGRAMMING
 
Basics of shell programming
Basics of shell programmingBasics of shell programming
Basics of shell programming
 
Basic command ppt
Basic command pptBasic command ppt
Basic command ppt
 
Linux
LinuxLinux
Linux
 
Linux Basic Commands
Linux Basic CommandsLinux Basic Commands
Linux Basic Commands
 
Scripting and the shell in LINUX
Scripting and the shell in LINUXScripting and the shell in LINUX
Scripting and the shell in LINUX
 
The Linux Command Cheat Sheet
The Linux Command Cheat SheetThe Linux Command Cheat Sheet
The Linux Command Cheat Sheet
 
Linux commands
Linux commandsLinux commands
Linux commands
 
Git/Github/Bitbucket@TalkIt. Humber college.
Git/Github/Bitbucket@TalkIt. Humber college.Git/Github/Bitbucket@TalkIt. Humber college.
Git/Github/Bitbucket@TalkIt. Humber college.
 
Important Linux Commands
Important Linux CommandsImportant Linux Commands
Important Linux Commands
 
Basic linux day 5
Basic linux day 5Basic linux day 5
Basic linux day 5
 
Linux basics
Linux basicsLinux basics
Linux basics
 
Linux basic commands
Linux basic commandsLinux basic commands
Linux basic commands
 
Course 102: Lecture 10: Learning About the Shell
Course 102: Lecture 10: Learning About the Shell Course 102: Lecture 10: Learning About the Shell
Course 102: Lecture 10: Learning About the Shell
 

Destacado

Analysis of cylindrical shell structure with varying parameters
Analysis of cylindrical shell structure with varying parametersAnalysis of cylindrical shell structure with varying parameters
Analysis of cylindrical shell structure with varying parameterseSAT Journals
 
Chap # 1. plant asset & depreciation
Chap # 1. plant asset & depreciationChap # 1. plant asset & depreciation
Chap # 1. plant asset & depreciationraham111
 
Shell structure (basic concept)
Shell structure (basic concept)Shell structure (basic concept)
Shell structure (basic concept)Ian Toisa
 
struktur cangkang (sell structure) kel. 4
struktur cangkang (sell structure) kel. 4struktur cangkang (sell structure) kel. 4
struktur cangkang (sell structure) kel. 4WSKT
 
Shell structures- advanced building construction
Shell structures- advanced building constructionShell structures- advanced building construction
Shell structures- advanced building constructionShweta Modi
 

Destacado (12)

Analysis of cylindrical shell structure with varying parameters
Analysis of cylindrical shell structure with varying parametersAnalysis of cylindrical shell structure with varying parameters
Analysis of cylindrical shell structure with varying parameters
 
Surface active systems
Surface active systems Surface active systems
Surface active systems
 
Chap # 1. plant asset & depreciation
Chap # 1. plant asset & depreciationChap # 1. plant asset & depreciation
Chap # 1. plant asset & depreciation
 
Space and shell structures
Space and shell structuresSpace and shell structures
Space and shell structures
 
Shells
ShellsShells
Shells
 
Shell structure (basic concept)
Shell structure (basic concept)Shell structure (basic concept)
Shell structure (basic concept)
 
Shell structure
Shell structureShell structure
Shell structure
 
struktur cangkang (sell structure) kel. 4
struktur cangkang (sell structure) kel. 4struktur cangkang (sell structure) kel. 4
struktur cangkang (sell structure) kel. 4
 
Types of structures
Types of structuresTypes of structures
Types of structures
 
Shell
ShellShell
Shell
 
The shell structure system
The shell structure systemThe shell structure system
The shell structure system
 
Shell structures- advanced building construction
Shell structures- advanced building constructionShell structures- advanced building construction
Shell structures- advanced building construction
 

Similar a BASH Shell Script Training in Noida- Rexton It Solution

Kali Linux Commands PDF-converted.pdf
Kali Linux Commands PDF-converted.pdfKali Linux Commands PDF-converted.pdf
Kali Linux Commands PDF-converted.pdfSN 600W
 
Shell tutorial
Shell tutorialShell tutorial
Shell tutorialVu Duy Tu
 
Linux administration training from hyderabad
Linux administration training from hyderabadLinux administration training from hyderabad
Linux administration training from hyderabadFuturePoint Technologies
 
2023comp90024_linux.pdf
2023comp90024_linux.pdf2023comp90024_linux.pdf
2023comp90024_linux.pdfLevLafayette1
 
Linux Administration
Linux AdministrationLinux Administration
Linux AdministrationHarish1983
 
Linux Administration
Linux AdministrationLinux Administration
Linux Administrationharirxg
 
List command linux a z
List command linux a zList command linux a z
List command linux a zJinyuan Loh
 
Quick guide of the most common linux commands
Quick guide of the most common linux commandsQuick guide of the most common linux commands
Quick guide of the most common linux commandsCarlos Enrique
 
Unix And Shell Scripting
Unix And Shell ScriptingUnix And Shell Scripting
Unix And Shell ScriptingJaibeer Malik
 
5.Shell And Environment
5.Shell And Environment5.Shell And Environment
5.Shell And Environmentphanleson
 
Ch 22: Web Hosting and Internet Servers
Ch 22: Web Hosting and Internet ServersCh 22: Web Hosting and Internet Servers
Ch 22: Web Hosting and Internet Serverswebhostingguy
 
101 3.1 gnu and unix commands v4
101 3.1 gnu and unix commands v4101 3.1 gnu and unix commands v4
101 3.1 gnu and unix commands v4Acácio Oliveira
 
Advanced Bash-Scripting Guide Advanced Bash-Scripting Guide An In-Depth Explo...
Advanced Bash-Scripting Guide Advanced Bash-Scripting Guide An In-Depth Explo...Advanced Bash-Scripting Guide Advanced Bash-Scripting Guide An In-Depth Explo...
Advanced Bash-Scripting Guide Advanced Bash-Scripting Guide An In-Depth Explo...Bryce Nelson
 

Similar a BASH Shell Script Training in Noida- Rexton It Solution (20)

Kali Linux Commands PDF-converted.pdf
Kali Linux Commands PDF-converted.pdfKali Linux Commands PDF-converted.pdf
Kali Linux Commands PDF-converted.pdf
 
Kali linux commands
Kali linux commandsKali linux commands
Kali linux commands
 
Shellscripting
ShellscriptingShellscripting
Shellscripting
 
Shell tutorial
Shell tutorialShell tutorial
Shell tutorial
 
Linux administration training from hyderabad
Linux administration training from hyderabadLinux administration training from hyderabad
Linux administration training from hyderabad
 
2023comp90024_linux.pdf
2023comp90024_linux.pdf2023comp90024_linux.pdf
2023comp90024_linux.pdf
 
Linux Administration
Linux AdministrationLinux Administration
Linux Administration
 
Linux Administration
Linux AdministrationLinux Administration
Linux Administration
 
archive A-Z linux
archive A-Z linuxarchive A-Z linux
archive A-Z linux
 
List command linux a z
List command linux a zList command linux a z
List command linux a z
 
Quick guide of the most common linux commands
Quick guide of the most common linux commandsQuick guide of the most common linux commands
Quick guide of the most common linux commands
 
Unix And Shell Scripting
Unix And Shell ScriptingUnix And Shell Scripting
Unix And Shell Scripting
 
Commands
CommandsCommands
Commands
 
5.Shell And Environment
5.Shell And Environment5.Shell And Environment
5.Shell And Environment
 
Comenzi unix
Comenzi unixComenzi unix
Comenzi unix
 
Ch 22: Web Hosting and Internet Servers
Ch 22: Web Hosting and Internet ServersCh 22: Web Hosting and Internet Servers
Ch 22: Web Hosting and Internet Servers
 
101 3.1 gnu and unix commands v4
101 3.1 gnu and unix commands v4101 3.1 gnu and unix commands v4
101 3.1 gnu and unix commands v4
 
Linux
LinuxLinux
Linux
 
Genode Programming
Genode ProgrammingGenode Programming
Genode Programming
 
Advanced Bash-Scripting Guide Advanced Bash-Scripting Guide An In-Depth Explo...
Advanced Bash-Scripting Guide Advanced Bash-Scripting Guide An In-Depth Explo...Advanced Bash-Scripting Guide Advanced Bash-Scripting Guide An In-Depth Explo...
Advanced Bash-Scripting Guide Advanced Bash-Scripting Guide An In-Depth Explo...
 

Último

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
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
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
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersChitralekhaTherkar
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 

Último (20)

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
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
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
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
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
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of Powders
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 

BASH Shell Script Training in Noida- Rexton It Solution

  • 1. BASH SHELL SCRIPT 1- Introduction to Shell What is shell Installation of shell Shell features Bash Keywords Built-in Commands Linux Commands Specialized Navigation and History Commands Shell Aliases Bash Hash Table The Set and Shopt Commands Key binding with bind command The Colon Command Long and Multi-line Command
  • 2. 2- Script Basics Writing small Script How to execute a script Creating a Well-Behaved Script The Header Global Declarations Sanity Checks The Main Script Cleanup Stopping a Script 3- Variables Variable basics Predefined variables System variables Special shell variable Customizing shell prompt Variable attributes Arrays variable local variable Exporting variables Use of quotations Escape characters Advance Bash Shell Scripting The eval command Reading keyboard input Basic redirection and pipe File descriptors 4- Expressions Basic if command let Features File test operators Arithmetic comparison operators String comparison operators Arithmetic comparison with double parentheses Parameter substitution and expansion Brackets and Extended brackets test construct Curly brackets construct Parentheses and double parentheses Regular expression Extended regular expression POSIX character classes
  • 3. Globbing options Here Documents Logical expressions 5- Compound Commands Command Status Codes if Command case Command while Loop until Loop for Loops Embedded let Grouping Commands 6- Debugging and Version Control Shell Debugging Features Shell Debugging Options Version Control (CVS) Watching Running Scripts Timing Execution with Time Creating Man Pages Shell Archives tee Command Switches Linux Time Command Switches Bash and Linux Time Command Format Codes 7- Parameters and getopts Positional Parameters The getopts Command getopts internal variables The getopt Command 8- Job Control and Signals Job Control Signals The suspend Command Traps Exit Handlers The killall Command Being Nice Process Status 9- Text File Basics Working with Pathnames
  • 4. File Truncation Identifying Files Creating and Deleting Files Moving and Copying Files More Information About Files Verifying Files Splitting Large Files Tabs and Spaces Temporary Files Lock Files Named Pipes Process Substitution Opening Files Using head and tail File Statistics Cutting Pasting Columns Folding Joining Merging 10- Text File Processing Finding Lines Locating Files Finding Files Sorting Character Editing (tr) Compressing Files 11- Console Scripting The Linux Console The Console Keyboard The Console Display select Menus Custom Menus 12- Functions and Script Execution Shell Functions Local Variables Recursion and Nested Functions Function Attributes Running Scripts The Linux Execution Environment
  • 5. The Source Command (.) Switching Scripts with exec 13- Shell Security The Basic Linux Security Model Knowing Who You Are (id) Transferring Ownership (chown/chgrp) Changing Access Rights (chmod) Default Access Rights (umask) setuid/setgid and Scripts The chroot Command Resource Limits (ulimit) Restricted Shells Secure File Deletion 14- Network Programming Sockets Client-Server and Peer-to-Peer Network Clients CGI Scripting CGI Environment Variables Processing Forms Basic Web Page Stripping Transferring Files Between Accounts (wget) Transferring Files with FTP Transferring Files with Secure FTP (sftp) 15- Sed 'Stream Editor' The essential command: s for substitution Substitute Flags /g - Global replacement /1, /2, etc. Specifying which occurrence Write to a file with /w filename Combining substitution flags Arguments and invocation of sed Multiple commands with -e command sed -f scriptname sed in shell script A sed interpreter script Addresses and Ranges of Text Restricting to a line number Patterns Ranges by line number Ranges by patterns
  • 6. Delete with d Grouping with { and } Multi-Line Patterns 16- Awk Programming Getting Started The Structure of an A WK Program Running an A WK Program Computing and Printing Printing Line Numbers Putting Text in the Output Sorting the Output Selection by Text Content Combinations of Patterns BEGIN and END Computing with A WK Computing Sums and Averages String Concatenation Built-in Functions Counting Lines, Words, and Characters Control-Flow Statements Expressions as Patterns String-Matching, Compound and Range Patterns Regular Expressions The printf Statement Output into Files Contact Us REXTON IT SOLUTIONS C-28, Sector 2, Near Nirula Hotel, Noida-201301 Tel: 01204117766 Cell: +91 9999051150 Email Id: Contact@rextonitsolutions.com Website: www.Rextonitsolutions.com