You are viewing a single comment's thread. Return to all comments →
while read input do my_arr=("${my_arr[@]}" $input) done pattern=(${my_arr[@]/*[aA]*/}) echo "${pattern[@]}"
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 →