Changes

Jump to: navigation, search

Tutorial10: Shell Scripting - Part 1

No change in size, 09:31, 15 July 2020
Using Variables in Shell Scripts
'''Positional Parameters and Special Parameters'''
[[Image:positional.png|thumb|right|250px220px|Examples of using '''positional''' and '''special''' parameters.]]A '''positional parameter''' is a variable within a shell program; its value is set from an argument specified<br>on the command line that invokes the program.
Positional parameters are numbered and are referred to<br>with a preceding "'''$'''": '''$1''', '''$2''', '''$3''', and so on. The positional parameter $0 refers to either the name of shell<br>where command was issued, or name of shell script being executed.
13,420
edits

Navigation menu