I am trying to print an array which contains string elements. Some are words, some are number and some have both. I get the error in the title. I know this error is usually linked to the shell thinking I am using a base other than decimal. this time the problem token is a combination of letters and numbers (2M)
arrcourse=[$[`cat tmp2`]]
size=${#arrcourse[@]}
for(( j=1; j<$size; j++ )); do
echo ${arrcourse[$j]}
done
tmp2 is the file the contains the line I ultimately wanna print (I use and array to lose the spaces and later to choose which elements to print).