I want to access each argument so I tried doing ${$counter2}} because that was my first intuition but I keep getting bad substitution error. Does anyone know how to do this?
Code:typeset -i counter=1typeset -i counter2=1 while [ $counter2 -le $# ] do cat ${$counter2} | while read line do echo "$counter. $line" counter=counter+1 done counter2=counter2+1 done
Bookmarks