sleftar |
11-05-2015 03:26 PM |
About positional parameters
Hi guys,
I know few tricks about positional parameters..
For example
Code:
set Joshua is my name.
echo $@
echo "$3 $4"
first one prints everything and second will print the part "my name."
Is there any way to write the second echo except this one.. For example I want all positional parameters to be printed except first 2.
I mean what I want to write is instead of writing this
Is there any way to write it as for example
because I want user to enter that sentence for me and I dont want my program to take first 2 positional parameters but I want computer to take rest of all parameters... Thanks.
|