• + 0 comments
    array=( `cat` )
    for i in ${!array[@]}; do
        if [[ ${array[$i]} =~ [aA] ]]; then
            unset array[$i]
        fi
    done
    
    echo ${array[@]}