#!/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