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