SlideShare a Scribd company logo
Shell Programming Concept
Shell Programming Concept
Shell Programming Concept
Shell Programming Concept
Shell Programming Concept
Shell Programming Concept
$1 The first argument
$2 Second argument
$0 The name of the script
$# The number of argument
$* The complete set of positional parameters as single string.
Shell Programming Concept
Shell Programming Concept
-eq Equal to
-ne Not equal to
-gt GreaterThan
-ge Greater than equal to
-lt Less than
-le Less than equal to
$ x=5; y=7;
$ test $x –eq $y; echo $?
1 Not equal
if test $# -ne 3; then
echo “You didn’t enter three arguments
else
echo “You entered correctly”
fi
Shell Programming Concept
Shell Programming Concept
Shell Programming Concept

More Related Content

What's hot (15)

PDF
Climbing the Abstract Syntax Tree (Midwest PHP 2020)
James Titcumb
 
PDF
Climbing the Abstract Syntax Tree (CodeiD PHP Odessa 2017)
James Titcumb
 
PDF
Climbing the Abstract Syntax Tree (ScotlandPHP 2018)
James Titcumb
 
PDF
Advanced perl finer points ,pack&unpack,eval,files
Shankar D
 
PPTX
Unix ppt
ashish kumar
 
PDF
Climbing the Abstract Syntax Tree (DPC 2017)
James Titcumb
 
PDF
Climbing the Abstract Syntax Tree (IPC Fall 2017)
James Titcumb
 
PPTX
Strings,patterns and regular expressions in perl
sana mateen
 
PPTX
Array,lists and hashes in perl
sana mateen
 
PPTX
Perl names values and variables
sana mateen
 
PDF
Creating a compiler in Perl 6
Andrew Shitov
 
PPT
Php String And Regular Expressions
mussawir20
 
PPT
Introduction to perl_control structures
Vamshi Santhapuri
 
PDF
Climbing the Abstract Syntax Tree (PHP Developer Days Dresden 2018)
James Titcumb
 
Climbing the Abstract Syntax Tree (Midwest PHP 2020)
James Titcumb
 
Climbing the Abstract Syntax Tree (CodeiD PHP Odessa 2017)
James Titcumb
 
Climbing the Abstract Syntax Tree (ScotlandPHP 2018)
James Titcumb
 
Advanced perl finer points ,pack&unpack,eval,files
Shankar D
 
Unix ppt
ashish kumar
 
Climbing the Abstract Syntax Tree (DPC 2017)
James Titcumb
 
Climbing the Abstract Syntax Tree (IPC Fall 2017)
James Titcumb
 
Strings,patterns and regular expressions in perl
sana mateen
 
Array,lists and hashes in perl
sana mateen
 
Perl names values and variables
sana mateen
 
Creating a compiler in Perl 6
Andrew Shitov
 
Php String And Regular Expressions
mussawir20
 
Introduction to perl_control structures
Vamshi Santhapuri
 
Climbing the Abstract Syntax Tree (PHP Developer Days Dresden 2018)
James Titcumb
 

More from Nishant Munjal (20)

PPTX
Database Management System
Nishant Munjal
 
PPTX
Functions & Recursion
Nishant Munjal
 
PPTX
Array, string and pointer
Nishant Munjal
 
PPTX
Programming in C
Nishant Munjal
 
PPTX
Introduction to computers
Nishant Munjal
 
PPTX
Unix Administration
Nishant Munjal
 
PPTX
VI Editor
Nishant Munjal
 
PPTX
Introduction to Unix
Nishant Munjal
 
PPTX
Routing Techniques
Nishant Munjal
 
PPTX
Asynchronous Transfer Mode
Nishant Munjal
 
PPTX
Overview of Cloud Computing
Nishant Munjal
 
PPTX
SQL Queries Information
Nishant Munjal
 
PPTX
Database Design and Normalization Techniques
Nishant Munjal
 
PPTX
Concurrency Control
Nishant Munjal
 
PPTX
Transaction Processing Concept
Nishant Munjal
 
PPTX
Database Management System
Nishant Munjal
 
PPTX
Relational Data Model Introduction
Nishant Munjal
 
PPTX
Virtualization, A Concept Implementation of Cloud
Nishant Munjal
 
PPTX
Technical education benchmarks
Nishant Munjal
 
PPSX
Bluemix Introduction
Nishant Munjal
 
Database Management System
Nishant Munjal
 
Functions & Recursion
Nishant Munjal
 
Array, string and pointer
Nishant Munjal
 
Programming in C
Nishant Munjal
 
Introduction to computers
Nishant Munjal
 
Unix Administration
Nishant Munjal
 
VI Editor
Nishant Munjal
 
Introduction to Unix
Nishant Munjal
 
Routing Techniques
Nishant Munjal
 
Asynchronous Transfer Mode
Nishant Munjal
 
Overview of Cloud Computing
Nishant Munjal
 
SQL Queries Information
Nishant Munjal
 
Database Design and Normalization Techniques
Nishant Munjal
 
Concurrency Control
Nishant Munjal
 
Transaction Processing Concept
Nishant Munjal
 
Database Management System
Nishant Munjal
 
Relational Data Model Introduction
Nishant Munjal
 
Virtualization, A Concept Implementation of Cloud
Nishant Munjal
 
Technical education benchmarks
Nishant Munjal
 
Bluemix Introduction
Nishant Munjal
 
Ad

Recently uploaded (20)

PPTX
Mechanical Design of shell and tube heat exchangers as per ASME Sec VIII Divi...
shahveer210504
 
PPTX
VITEEE 2026 Exam Details , Important Dates
SonaliSingh127098
 
PPTX
Shinkawa Proposal to meet Vibration API670.pptx
AchmadBashori2
 
PDF
PORTFOLIO Golam Kibria Khan — architect with a passion for thoughtful design...
MasumKhan59
 
PDF
Introduction to Productivity and Quality
মোঃ ফুরকান উদ্দিন জুয়েল
 
PDF
Electrical Engineer operation Supervisor
ssaruntatapower143
 
PPTX
Damage of stability of a ship and how its change .pptx
ehamadulhaque
 
PPTX
MATLAB : Introduction , Features , Display Windows, Syntax, Operators, Graph...
Amity University, Patna
 
PDF
smart lot access control system with eye
rasabzahra
 
PPTX
Presentation 2.pptx AI-powered home security systems Secure-by-design IoT fr...
SoundaryaBC2
 
PPTX
Worm gear strength and wear calculation as per standard VB Bhandari Databook.
shahveer210504
 
DOCX
CS-802 (A) BDH Lab manual IPS Academy Indore
thegodhimself05
 
PPTX
Lecture 1 Shell and Tube Heat exchanger-1.pptx
mailforillegalwork
 
PPTX
Knowledge Representation : Semantic Networks
Amity University, Patna
 
DOCX
8th International Conference on Electrical Engineering (ELEN 2025)
elelijjournal653
 
PDF
Pressure Measurement training for engineers and Technicians
AIESOLUTIONS
 
PPTX
Solar Thermal Energy System Seminar.pptx
Gpc Purapuza
 
PPTX
What is Shot Peening | Shot Peening is a Surface Treatment Process
Vibra Finish
 
PPTX
Product Development & DevelopmentLecture02.pptx
zeeshanwazir2
 
PDF
Halide Perovskites’ Multifunctional Properties: Coordination Engineering, Coo...
TaameBerhe2
 
Mechanical Design of shell and tube heat exchangers as per ASME Sec VIII Divi...
shahveer210504
 
VITEEE 2026 Exam Details , Important Dates
SonaliSingh127098
 
Shinkawa Proposal to meet Vibration API670.pptx
AchmadBashori2
 
PORTFOLIO Golam Kibria Khan — architect with a passion for thoughtful design...
MasumKhan59
 
Introduction to Productivity and Quality
মোঃ ফুরকান উদ্দিন জুয়েল
 
Electrical Engineer operation Supervisor
ssaruntatapower143
 
Damage of stability of a ship and how its change .pptx
ehamadulhaque
 
MATLAB : Introduction , Features , Display Windows, Syntax, Operators, Graph...
Amity University, Patna
 
smart lot access control system with eye
rasabzahra
 
Presentation 2.pptx AI-powered home security systems Secure-by-design IoT fr...
SoundaryaBC2
 
Worm gear strength and wear calculation as per standard VB Bhandari Databook.
shahveer210504
 
CS-802 (A) BDH Lab manual IPS Academy Indore
thegodhimself05
 
Lecture 1 Shell and Tube Heat exchanger-1.pptx
mailforillegalwork
 
Knowledge Representation : Semantic Networks
Amity University, Patna
 
8th International Conference on Electrical Engineering (ELEN 2025)
elelijjournal653
 
Pressure Measurement training for engineers and Technicians
AIESOLUTIONS
 
Solar Thermal Energy System Seminar.pptx
Gpc Purapuza
 
What is Shot Peening | Shot Peening is a Surface Treatment Process
Vibra Finish
 
Product Development & DevelopmentLecture02.pptx
zeeshanwazir2
 
Halide Perovskites’ Multifunctional Properties: Coordination Engineering, Coo...
TaameBerhe2
 
Ad

Shell Programming Concept

  • 7. $1 The first argument $2 Second argument $0 The name of the script $# The number of argument $* The complete set of positional parameters as single string.
  • 10. -eq Equal to -ne Not equal to -gt GreaterThan -ge Greater than equal to -lt Less than -le Less than equal to $ x=5; y=7; $ test $x –eq $y; echo $? 1 Not equal if test $# -ne 3; then echo “You didn’t enter three arguments else echo “You entered correctly” fi