You are viewing a single comment's thread. Return to all comments →
declare -a array=() while read r; do array=("${array[@]}" "$r") # add array done declare -a patter=(${array[@]/*a*/}) declare -a patter1=(${patter[@]/*A*/}) echo ${patter1[@]}
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 →