Skip to content

Instantly share code, notes, and snippets.

@dalehamel
Created March 10, 2014 16:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dalehamel/9467986 to your computer and use it in GitHub Desktop.
Save dalehamel/9467986 to your computer and use it in GitHub Desktop.
#!/bin/bash
lddwalk ()
{
files=`ldd $1 | awk '{print $3'} | grep -v "^$"`
for file in $files; do
echo $file
lddwalk $file
done
}
lddwalk $1 | sort | uniq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment