• + 0 comments
    while read input
    do
        my_arr=("${my_arr[@]}" $input)
    done
    
    pattern=(${my_arr[@]/*[aA]*/})
    echo "${pattern[@]}"