terrygalant.li...@fastest.cc wrote:
Why do I need to escape the "+" in the last case, but not in the first?
Because "+" is a special character to egrep. The pattern "libstdc++" is equivalent to the pattern "libstdcc*" which matches in the first case, whereas the pattern "libstdc++.so" is equivalent to the pattern "libstdcc*.so" which does not match in the last case.