• + 0 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"