8 lines
186 B
Bash
Executable File
8 lines
186 B
Bash
Executable File
#!/bin/sh
|
|
|
|
case $# in
|
|
0) echo 'usage: ldd FILE...';;
|
|
1) objdump -p -- "$@" | grep NEEDED | cut -d' ' -f18;;
|
|
*) objdump -p -- "$@" | grep 'NEEDED\|file format' | cut -d' ' -f1,18
|
|
esac
|