SlideShare a Scribd company logo
AMITY UNIVERSITY RAJASTHAN
PRESENTED BY:
ASHISH KUMAR
MCA 4TH SEMESTER.
Roll NO : AUR 1351016
(AMITY INSTITUTE OF INFORMATION TECHNOLOGY)
Presentation on
Positional Parameter In Unix
 A positional parameter is a parameter whose position on the command line
is important to the program reading it.
 Positional parameters are a series of special variables ($0 through $9) that
contain the contents of the command line. If some program were a bash shell
script, we could read each item on the command line.
Special bash parameter Meaning
$# $# is quite a special bash parameter and it
expands to number of positional parameters in
decimal.
$0 $0 bash parameter is used to reference name of
the shell or shell script. so you can use this if you
want to print name of shell script.
$- $- (dollar hyphen) bash parameter is used to get
current option flags specified during invocation,
by the set built-in command or set by the bash
shell itself. Though this bash parameter is rarely
used.
$? $0 is one of the most used bash parameter and
used to get the exit status of the most recently
executed command in foreground. By using this
you can check whether your bash script is
completed successfully or not.
$_ $_ (dollar underscore) is another special bash
parameter and used to reference the absolute file
name of the shell or bash script which is being
executed as specified in the argument list. This
bash parameter is also used to hold the name of
mail file while checking mails.
$@ $@ (dollar at the rate) bash parameter is used to
expand into positional parameters starting from
one. When expansion occurs inside double quotes,
every parameter expands into separate words.
$* $* (dollar star) this is similar to $@ special bash
parameter only difference is when expansion
occurs with double quotes, it expands to a single
word with value of each bash parameter
separated by the first character of special
variable.
Special bash character Meaning
# # is used to comment a single line in
bash script
$$ $$ is used to reference process id of
any command or bash script
$name $name will print the value of
variable “name” defined in script.
$n $n will print value of nth argument
provided to bash script (n ranges
form 0 to 9) e.g. $1 will print first
argument.
> > is used to redirect output
>> >> can be used to Append to file
< < will redirect input
[ ] [] are for matching any characters
enclosed
( ) Execute in sub shell
` ` Another powerful special bash character
which is used to substitute output of
enclosed command
" " Partial quote (allows variable and
command expansion)
' ' Full quote (no expansion)
 Quote following character
| Pipe output of one command to another
most useful and immensely power bash
character
& & is used to run any process in
background.
; ;(semi colon ) is used to separate
commands on same line
* * is used to match any character(s) in
filename
? ? is for matching single character in
filename
Unix ppt

More Related Content

What's hot

Awk programming
Awk programming Awk programming
Awk programming
Dr.M.Karthika parthasarathy
 
Unit 1-scalar expressions and control structures
Unit 1-scalar expressions and control structuresUnit 1-scalar expressions and control structures
Unit 1-scalar expressions and control structures
sana mateen
 
Mysqlppt
MysqlpptMysqlppt
MysqlpptReka
 
Subroutines
SubroutinesSubroutines
Perl.predefined.variables
Perl.predefined.variablesPerl.predefined.variables
Perl.predefined.variablesKing Hom
 
08 Advanced PHP #burningkeyboards
08 Advanced PHP #burningkeyboards08 Advanced PHP #burningkeyboards
08 Advanced PHP #burningkeyboards
Denis Ristic
 
Sed tips and_tricks
Sed tips and_tricksSed tips and_tricks
Sed tips and_tricks
Logan Palanisamy
 
Perl tutorial
Perl tutorialPerl tutorial
Perl tutorial
Manav Prasad
 
Perl Introduction
Perl IntroductionPerl Introduction
Perl Introduction
Marcos Rebelo
 
Lecture3 php by okello erick
Lecture3 php by okello erickLecture3 php by okello erick
Lecture3 php by okello erick
okelloerick
 
perl usage at database applications
perl usage at database applicationsperl usage at database applications
perl usage at database applicationsJoe Jiang
 
Python regular expressions
Python regular expressionsPython regular expressions
Python regular expressions
Krishna Nanda
 
Perl Programming - 02 Regular Expression
Perl Programming - 02 Regular ExpressionPerl Programming - 02 Regular Expression
Perl Programming - 02 Regular Expression
Danairat Thanabodithammachari
 
Perl Basics with Examples
Perl Basics with ExamplesPerl Basics with Examples
Perl Basics with Examples
Nithin Kumar Singani
 
Learning sed and awk
Learning sed and awkLearning sed and awk
Learning sed and awk
Yogesh Sawant
 
Perl programming language
Perl programming languagePerl programming language
Perl programming languageElie Obeid
 
Intro to Perl and Bioperl
Intro to Perl and BioperlIntro to Perl and Bioperl
Tutorial perl programming basic eng ver
Tutorial perl programming basic eng verTutorial perl programming basic eng ver
Tutorial perl programming basic eng ver
Qrembiezs Intruder
 
PHP variables
PHP  variablesPHP  variables
PHP variables
Siddique Ibrahim
 

What's hot (19)

Awk programming
Awk programming Awk programming
Awk programming
 
Unit 1-scalar expressions and control structures
Unit 1-scalar expressions and control structuresUnit 1-scalar expressions and control structures
Unit 1-scalar expressions and control structures
 
Mysqlppt
MysqlpptMysqlppt
Mysqlppt
 
Subroutines
SubroutinesSubroutines
Subroutines
 
Perl.predefined.variables
Perl.predefined.variablesPerl.predefined.variables
Perl.predefined.variables
 
08 Advanced PHP #burningkeyboards
08 Advanced PHP #burningkeyboards08 Advanced PHP #burningkeyboards
08 Advanced PHP #burningkeyboards
 
Sed tips and_tricks
Sed tips and_tricksSed tips and_tricks
Sed tips and_tricks
 
Perl tutorial
Perl tutorialPerl tutorial
Perl tutorial
 
Perl Introduction
Perl IntroductionPerl Introduction
Perl Introduction
 
Lecture3 php by okello erick
Lecture3 php by okello erickLecture3 php by okello erick
Lecture3 php by okello erick
 
perl usage at database applications
perl usage at database applicationsperl usage at database applications
perl usage at database applications
 
Python regular expressions
Python regular expressionsPython regular expressions
Python regular expressions
 
Perl Programming - 02 Regular Expression
Perl Programming - 02 Regular ExpressionPerl Programming - 02 Regular Expression
Perl Programming - 02 Regular Expression
 
Perl Basics with Examples
Perl Basics with ExamplesPerl Basics with Examples
Perl Basics with Examples
 
Learning sed and awk
Learning sed and awkLearning sed and awk
Learning sed and awk
 
Perl programming language
Perl programming languagePerl programming language
Perl programming language
 
Intro to Perl and Bioperl
Intro to Perl and BioperlIntro to Perl and Bioperl
Intro to Perl and Bioperl
 
Tutorial perl programming basic eng ver
Tutorial perl programming basic eng verTutorial perl programming basic eng ver
Tutorial perl programming basic eng ver
 
PHP variables
PHP  variablesPHP  variables
PHP variables
 

Viewers also liked

Amity template for presentation
Amity template for presentationAmity template for presentation
Amity template for presentation
Yash Savla
 
Report on automatic door
Report on automatic doorReport on automatic door
Report on automatic doorIndira Kundu
 
1 birds that are away from their nesting place
1 birds that are away from their nesting place1 birds that are away from their nesting place
1 birds that are away from their nesting place
oiramzipol
 
November 1976 complete
November 1976 completeNovember 1976 complete
November 1976 completeDavid Adler
 
Next2 SMS Marketing Presentation
Next2 SMS Marketing PresentationNext2 SMS Marketing Presentation
Next2 SMS Marketing Presentation
Brian Puckett
 
Türkiye Marketing Projesi
Türkiye Marketing ProjesiTürkiye Marketing Projesi
Türkiye Marketing Projesi
Hakan TOPUZOĞLU
 
Bijker, M. (2010) Making Measures And Inferences Reserve
Bijker, M. (2010)   Making Measures And Inferences ReserveBijker, M. (2010)   Making Measures And Inferences Reserve
Bijker, M. (2010) Making Measures And Inferences Reserve
Fontys University
 
Новое оформление журнала «Ф.»
Новое оформление журнала «Ф.»Новое оформление журнала «Ф.»
Новое оформление журнала «Ф.»Ilya Yakovlev
 
Guide To Content Analysis
Guide To Content AnalysisGuide To Content Analysis
Guide To Content Analysis
Tommy Jo St John
 
Year 2009: Senator Will Espero
Year 2009: Senator Will EsperoYear 2009: Senator Will Espero
Year 2009: Senator Will Espero
Will Espero
 
Step 5 Templates
Step 5 TemplatesStep 5 Templates
Step 5 Templates
PMSD Roadmap
 
Corporate Social Responsibility Creating Synergies
Corporate Social Responsibility  Creating SynergiesCorporate Social Responsibility  Creating Synergies
Corporate Social Responsibility Creating Synergies
Krishna Muppavarapu
 
Jad NEHME - Alcatel-Lucent - Report
Jad NEHME - Alcatel-Lucent - ReportJad NEHME - Alcatel-Lucent - Report
Jad NEHME - Alcatel-Lucent - ReportJad Nehme
 
WeHOST - Intro Pack
WeHOST - Intro PackWeHOST - Intro Pack
WeHOST - Intro Pack
Dey Dos
 
Question 1
Question 1Question 1
Question 1
TonishaMedia
 
The leader of vo ip
The leader of vo ipThe leader of vo ip
The leader of vo ip
Coralinelin
 
Arts Alive Presentation FINAL
Arts Alive Presentation FINALArts Alive Presentation FINAL
Arts Alive Presentation FINALJulie Kendig
 

Viewers also liked (20)

Training ppt
Training pptTraining ppt
Training ppt
 
Amity template for presentation
Amity template for presentationAmity template for presentation
Amity template for presentation
 
Report on automatic door
Report on automatic doorReport on automatic door
Report on automatic door
 
1 birds that are away from their nesting place
1 birds that are away from their nesting place1 birds that are away from their nesting place
1 birds that are away from their nesting place
 
November 1976 complete
November 1976 completeNovember 1976 complete
November 1976 complete
 
Next2 SMS Marketing Presentation
Next2 SMS Marketing PresentationNext2 SMS Marketing Presentation
Next2 SMS Marketing Presentation
 
Türkiye Marketing Projesi
Türkiye Marketing ProjesiTürkiye Marketing Projesi
Türkiye Marketing Projesi
 
CV sachin
CV sachinCV sachin
CV sachin
 
Bijker, M. (2010) Making Measures And Inferences Reserve
Bijker, M. (2010)   Making Measures And Inferences ReserveBijker, M. (2010)   Making Measures And Inferences Reserve
Bijker, M. (2010) Making Measures And Inferences Reserve
 
Task 3
Task 3Task 3
Task 3
 
Новое оформление журнала «Ф.»
Новое оформление журнала «Ф.»Новое оформление журнала «Ф.»
Новое оформление журнала «Ф.»
 
Guide To Content Analysis
Guide To Content AnalysisGuide To Content Analysis
Guide To Content Analysis
 
Year 2009: Senator Will Espero
Year 2009: Senator Will EsperoYear 2009: Senator Will Espero
Year 2009: Senator Will Espero
 
Step 5 Templates
Step 5 TemplatesStep 5 Templates
Step 5 Templates
 
Corporate Social Responsibility Creating Synergies
Corporate Social Responsibility  Creating SynergiesCorporate Social Responsibility  Creating Synergies
Corporate Social Responsibility Creating Synergies
 
Jad NEHME - Alcatel-Lucent - Report
Jad NEHME - Alcatel-Lucent - ReportJad NEHME - Alcatel-Lucent - Report
Jad NEHME - Alcatel-Lucent - Report
 
WeHOST - Intro Pack
WeHOST - Intro PackWeHOST - Intro Pack
WeHOST - Intro Pack
 
Question 1
Question 1Question 1
Question 1
 
The leader of vo ip
The leader of vo ipThe leader of vo ip
The leader of vo ip
 
Arts Alive Presentation FINAL
Arts Alive Presentation FINALArts Alive Presentation FINAL
Arts Alive Presentation FINAL
 

Similar to Unix ppt

of 70UNIX Unbounded 5th EditionAmir Afzal .docx
 of 70UNIX Unbounded 5th EditionAmir Afzal .docx of 70UNIX Unbounded 5th EditionAmir Afzal .docx
of 70UNIX Unbounded 5th EditionAmir Afzal .docx
MARRY7
 
of 70UNIX Unbounded 5th EditionAmir Afzal .docx
of 70UNIX Unbounded 5th EditionAmir Afzal .docxof 70UNIX Unbounded 5th EditionAmir Afzal .docx
of 70UNIX Unbounded 5th EditionAmir Afzal .docx
adkinspaige22
 
First steps in PERL
First steps in PERLFirst steps in PERL
First steps in PERL
Brahma Killampalli
 
Unit 11 configuring the bash shell – shell script
Unit 11 configuring the bash shell – shell scriptUnit 11 configuring the bash shell – shell script
Unit 11 configuring the bash shell – shell scriptroot_fibo
 
Shell scripting
Shell scriptingShell scripting
Shell scripting
Mufaddal Haidermota
 
Shell scripting
Shell scriptingShell scripting
Shell scripting
Manav Prasad
 
BASH Guide Summary
BASH Guide SummaryBASH Guide Summary
BASH Guide SummaryOhgyun Ahn
 
Bash shell
Bash shellBash shell
Bash shellxylas121
 
Licão 09 variables and arrays v2
Licão 09 variables and arrays v2Licão 09 variables and arrays v2
Licão 09 variables and arrays v2
Acácio Oliveira
 
COMELEC III - Bash unit 1
COMELEC III - Bash unit 1COMELEC III - Bash unit 1
COMELEC III - Bash unit 1Binsent Ribera
 
KT on Bash Script.pptx
KT on Bash Script.pptxKT on Bash Script.pptx
KT on Bash Script.pptx
gogulasivannarayana
 
ShellAdvanced aaäaaaaaaaaaaaaaaaaaaaaaaaaaaa
ShellAdvanced aaäaaaaaaaaaaaaaaaaaaaaaaaaaaaShellAdvanced aaäaaaaaaaaaaaaaaaaaaaaaaaaaaa
ShellAdvanced aaäaaaaaaaaaaaaaaaaaaaaaaaaaaa
ewout2
 
Please write the program mysh in C programming language and follow.pdf
Please write the program mysh in C programming language and follow.pdfPlease write the program mysh in C programming language and follow.pdf
Please write the program mysh in C programming language and follow.pdf
amarndsons
 
First steps in C-Shell
First steps in C-ShellFirst steps in C-Shell
First steps in C-Shell
Brahma Killampalli
 
AssignmentModify the Python program by adding the create_dictiona.pdf
AssignmentModify the Python program by adding the create_dictiona.pdfAssignmentModify the Python program by adding the create_dictiona.pdf
AssignmentModify the Python program by adding the create_dictiona.pdf
tsekar2004
 

Similar to Unix ppt (20)

of 70UNIX Unbounded 5th EditionAmir Afzal .docx
 of 70UNIX Unbounded 5th EditionAmir Afzal .docx of 70UNIX Unbounded 5th EditionAmir Afzal .docx
of 70UNIX Unbounded 5th EditionAmir Afzal .docx
 
of 70UNIX Unbounded 5th EditionAmir Afzal .docx
of 70UNIX Unbounded 5th EditionAmir Afzal .docxof 70UNIX Unbounded 5th EditionAmir Afzal .docx
of 70UNIX Unbounded 5th EditionAmir Afzal .docx
 
First steps in PERL
First steps in PERLFirst steps in PERL
First steps in PERL
 
Unit 11 configuring the bash shell – shell script
Unit 11 configuring the bash shell – shell scriptUnit 11 configuring the bash shell – shell script
Unit 11 configuring the bash shell – shell script
 
Shell scripting
Shell scriptingShell scripting
Shell scripting
 
Shell scripting
Shell scriptingShell scripting
Shell scripting
 
BASH Guide Summary
BASH Guide SummaryBASH Guide Summary
BASH Guide Summary
 
Bash shell
Bash shellBash shell
Bash shell
 
Licão 09 variables and arrays v2
Licão 09 variables and arrays v2Licão 09 variables and arrays v2
Licão 09 variables and arrays v2
 
COMELEC III - Bash unit 1
COMELEC III - Bash unit 1COMELEC III - Bash unit 1
COMELEC III - Bash unit 1
 
KT on Bash Script.pptx
KT on Bash Script.pptxKT on Bash Script.pptx
KT on Bash Script.pptx
 
ShellAdvanced aaäaaaaaaaaaaaaaaaaaaaaaaaaaaa
ShellAdvanced aaäaaaaaaaaaaaaaaaaaaaaaaaaaaaShellAdvanced aaäaaaaaaaaaaaaaaaaaaaaaaaaaaa
ShellAdvanced aaäaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Php Learning show
Php Learning showPhp Learning show
Php Learning show
 
Please write the program mysh in C programming language and follow.pdf
Please write the program mysh in C programming language and follow.pdfPlease write the program mysh in C programming language and follow.pdf
Please write the program mysh in C programming language and follow.pdf
 
testing add
testing addtesting add
testing add
 
latest slide
latest slidelatest slide
latest slide
 
First steps in C-Shell
First steps in C-ShellFirst steps in C-Shell
First steps in C-Shell
 
AssignmentModify the Python program by adding the create_dictiona.pdf
AssignmentModify the Python program by adding the create_dictiona.pdfAssignmentModify the Python program by adding the create_dictiona.pdf
AssignmentModify the Python program by adding the create_dictiona.pdf
 
Linker scripts
Linker scriptsLinker scripts
Linker scripts
 
Hashes Master
Hashes MasterHashes Master
Hashes Master
 

More from ashish kumar

Cyber Security PPT
Cyber Security PPTCyber Security PPT
Cyber Security PPT
ashish kumar
 
Java Simple Notes
Java Simple NotesJava Simple Notes
Java Simple Notes
ashish kumar
 
Software enginnering
Software enginneringSoftware enginnering
Software enginnering
ashish kumar
 
Save girl child
Save girl childSave girl child
Save girl child
ashish kumar
 

More from ashish kumar (6)

Cyber Security PPT
Cyber Security PPTCyber Security PPT
Cyber Security PPT
 
Java Simple Notes
Java Simple NotesJava Simple Notes
Java Simple Notes
 
Software enginnering
Software enginneringSoftware enginnering
Software enginnering
 
Asp.net
Asp.netAsp.net
Asp.net
 
Save girl child
Save girl childSave girl child
Save girl child
 
Vol1
Vol1Vol1
Vol1
 

Recently uploaded

The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdfMASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
goswamiyash170123
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
deeptiverma2406
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Advantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO PerspectiveAdvantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO Perspective
Krisztián Száraz
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 

Recently uploaded (20)

The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdfMASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Advantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO PerspectiveAdvantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO Perspective
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 

Unix ppt

  • 1. AMITY UNIVERSITY RAJASTHAN PRESENTED BY: ASHISH KUMAR MCA 4TH SEMESTER. Roll NO : AUR 1351016 (AMITY INSTITUTE OF INFORMATION TECHNOLOGY) Presentation on Positional Parameter In Unix
  • 2.  A positional parameter is a parameter whose position on the command line is important to the program reading it.  Positional parameters are a series of special variables ($0 through $9) that contain the contents of the command line. If some program were a bash shell script, we could read each item on the command line.
  • 3. Special bash parameter Meaning $# $# is quite a special bash parameter and it expands to number of positional parameters in decimal. $0 $0 bash parameter is used to reference name of the shell or shell script. so you can use this if you want to print name of shell script. $- $- (dollar hyphen) bash parameter is used to get current option flags specified during invocation, by the set built-in command or set by the bash shell itself. Though this bash parameter is rarely used. $? $0 is one of the most used bash parameter and used to get the exit status of the most recently executed command in foreground. By using this you can check whether your bash script is completed successfully or not.
  • 4. $_ $_ (dollar underscore) is another special bash parameter and used to reference the absolute file name of the shell or bash script which is being executed as specified in the argument list. This bash parameter is also used to hold the name of mail file while checking mails. $@ $@ (dollar at the rate) bash parameter is used to expand into positional parameters starting from one. When expansion occurs inside double quotes, every parameter expands into separate words. $* $* (dollar star) this is similar to $@ special bash parameter only difference is when expansion occurs with double quotes, it expands to a single word with value of each bash parameter separated by the first character of special variable.
  • 5. Special bash character Meaning # # is used to comment a single line in bash script $$ $$ is used to reference process id of any command or bash script $name $name will print the value of variable “name” defined in script. $n $n will print value of nth argument provided to bash script (n ranges form 0 to 9) e.g. $1 will print first argument. > > is used to redirect output >> >> can be used to Append to file < < will redirect input
  • 6. [ ] [] are for matching any characters enclosed ( ) Execute in sub shell ` ` Another powerful special bash character which is used to substitute output of enclosed command " " Partial quote (allows variable and command expansion) ' ' Full quote (no expansion) Quote following character
  • 7. | Pipe output of one command to another most useful and immensely power bash character & & is used to run any process in background. ; ;(semi colon ) is used to separate commands on same line * * is used to match any character(s) in filename ? ? is for matching single character in filename