• + 0 comments

    using shell parameter expansion,

    mapfile countries
    echo ${countries##*[Aa]*}
    

    ${parameter##pattern} deletes longest matching pattern.

    If you need further information, here is bash reference manual. https://www.gnu.org/software/bash/manual/bash.html#Shell-Parameter-Expansion