in reply to Re: How to replace greedy alternation?
in thread How to replace greedy alternation?

egrep finds all the cases because it has greedy alternation(the subject of this Seekers...). -o simply has egrep print out the matches it does find. A complete non-perl solution could be something like
echo 1b22cc333a | egrep -o 'a|b|c' | sort -u | wc -l
This will simply return 3. If I want 3 chars in any order and this command returns 3 than I had a successful match of all 3 in any order!