A few notes on find's exec
jpospisil.com
jpospisil.com
find /usr/lib -name "*.so" -print0 | xargs -0 file -N --mime-type | egrep ": text/plain$"
this is much faster (0.5 sec vs 8 sec on my PC), easily parallelizeable if needed, and requires fewer tricks to keep arguments quoted.