sh temp1.sh Gold.txt Silver.txt
2
Gold.txt
$2
Silver is second to gold. It is a unique position in a competition.
cat: cannot open $2
tstetlx () /appl/edw/apps/scripts/scenario1> vi temp1.sh
i=$#
echo $i
echo $1
echo $`echo $i`
#cat "$`echo $i`"
cat $2
cat "\$$i"
The below command is not printing the contents of the second file passed as an argument to the file.
cat "\$$i"