hi,
i am passing around 14 parameters for a script
a=$1
b=$2
c=$3
d=$4
e=$5
f=$6
g=$7
h=$8
i=\"${9}\"
shift
j=\"${1}\"
still for j it is displaying the 1st parameter value..how to make it take the 10th parameter
hi,
i am passing around 14 parameters for a script
a=$1
b=$2
c=$3
d=$4
e=$5
f=$6
g=$7
h=$8
i=\"${9}\"
shift
j=\"${1}\"
still for j it is displaying the 1st parameter value..how to make it take the 10th parameter
For ksh and bash, you surround the parameter number in curly braces:
x=${10}
j=${101}
$ t() { echo ${10}:${12}; }
$ t 1 2 3 4 5 6 7 8 9 10 11 12 13 14
10:12
May be this should work..I didnt try!!!
a=$1
b=$2
c=$3
d=$4
e=$5
f=$6
g=$7
h=$8
i=\"${9}\"
shift
j=$1
shift
k=$1
shift
l=$1