You are viewing a single comment's thread. Return to all comments →
My solution: !/bin/bash
contador=0 auxiliar=""
read entrance
read -a entrance2
for(( i=0; i<"You can't use 'macro parameter character #' in math mode{#entrance2[@]}"; l++ )); do if(("{entrance2[l]}"));then contador=$((contador+1)) fi
done if(("$contador" == "1")); then auxiliar="${entrance2[i]}" break fi
done
echo "$auxiliar"
Seems like cookies are disabled on this browser, please enable them to open this website
Lonely Integer - Bash!
You are viewing a single comment's thread. Return to all comments →
My solution: !/bin/bash
contador=0 auxiliar=""
read entrance
read -a entrance2
for(( i=0; i<"{#entrance2[@]}"; l++ )); do if(("{entrance2[l]}"));then contador=$((contador+1)) fi
done
echo "$auxiliar"