i am trying to print an array which contains string elelmnts. 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 wich elements to print). tnx in advance.