• + 0 comments
    mapfile -t array
    
    output=$(grep -vi "a" <(printf "%s\n" "${array[@]}"))
    
    if [ -z "$output" ]; then
     echo ""
    else
     echo "$output"
    fi
    

    The last part is horrible, but necessary for the challenge.