You are viewing a single comment's thread. Return to all 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.
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 →
The last part is horrible, but necessary for the challenge.