You are viewing a single comment's thread. Return to all comments →
array=( `cat` ) for i in ${!array[@]}; do if [[ ${array[$i]} =~ [aA] ]]; then unset array[$i] fi done echo ${array[@]}
Seems like cookies are disabled on this browser, please enable them to open this website
Filter an Array with Patterns
You are viewing a single comment's thread. Return to all comments →