blob: 9f4fe384753d0b053fdcf4789b53cd2436c629e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/usr/bin/env bash
if [ "$#" -lt 1 ]; then
echo "Usage: $0 <command1> <command2> ... <commandN>"
exit 1
fi
results=()
for arg in "$@"; do
while IFS= read -r line; do
results+=("$line")
done < <(ldd "$arg" | grep /usr/bin | awk '{ print $3 }')
done
printf "%s\n" "${results[@]}" | sort | uniq
|