blob: 4483ca6858232beeab5384cd821906c3f5c9d1a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/bash
# note this works for both a.out and ELF executables
ulimit -c 0
filelist=$(xargs file 2>/dev/null | grep "executable" | cut -d: -f1)
for f in $filelist; do
ldd $f | grep '=>' | awk '{ print $1 }'
done | sort -u | xargs -r -n 1 basename | sort -u
|