#!/bin/sh # list non-system DLL dependencies for a Windows executable objdump -p $1 | grep "DLL Name:" | cut -d: -f2 | tr -d ' ' | sort | uniq | xargs -n 1 which | grep -v system32