Skip to content

Instantly share code, notes, and snippets.

@scue
Created April 8, 2018 06:47
Show Gist options
  • Save scue/c8879958ea76dcbc1463eda4ada4e768 to your computer and use it in GitHub Desktop.
Save scue/c8879958ea76dcbc1463eda4ada4e768 to your computer and use it in GitHub Desktop.
Search dynamic shared library existed or not.
#!/bin/sh
libs="
libresolv.so
libncurses.so
libtinfo.so
libm.so
libc.so
"
search_paths="
/lib
/lib32
/libexec
/usr/lib
/usr/lib32
/usr/libexec
/app/system/usr/lib
/thunder/lib
"
for lib in $libs; do
echo "==> searching $lib ..."
find $search_paths -name "$lib*"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment