On 14.7. 13:32, Jeffrey Walton wrote:
Hi Everyone,
I'm working on a script to find all shared objects in a directory. A
filename should match the RE '*.so$'. I thought I would pipe it to
grep:
IFS="" find "$dir" -name '*.so' -print | while read -r file
do
if ! $(echo "$file" | grep -E "*.so$"); then continue; fi
echo "library: $file"
done
Are you trying to find the .so files, or run them for some tests?
Because it looks to me that you're running whatever that command
substitution outputs, and not all dynamic libraries are made for that.
--
Ilkka Virta / itvi...@iki.fi