• + 4 comments
    arr=($(cat))
    echo ${arr[@]/*[aA]*/}
    

    This is using regular expression pattern matching to filter the array replacing each element matching the provided pattern ( *[aA]*) with nothing, which means it omits matches from the results.