2 points · by _zkog · 2y ago · 1 comment
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.