One For The Gods Of Linux [ Bash Scripting postional parameters / arguments ]

ally_ukally_uk Member Posts: 1,145 ■■■■□□□□□□
Good evening

I am in the process of trying to get my head around BASH scripting I am not a programmer and am having trouble with understanding Positional parameters and arguments.

I understand how to declare variables but am failing to understand the concept of arguments and positional parameters.

$0, $1, $2

From my understanding $0 holds the script name?

Could somebody write a noob script example breaking it down and explaining arguments it would really help me out i'm getting nothing but headaches lol :)

Many Thanks

Appreciate it
Microsoft's strategy to conquer the I.T industry

" Embrace, evolve, extinguish "


Sign In or Register to comment.