NetBSD/distrib/sun3/ramdisk/Findrefs

12 lines
161 B
Bash
Executable File

#!/bin/sh
# Small helper to find out who pulls in X
[ "$1" ] || { echo "$0: match_string" ; exit 1; }
for f in *.lo
do
nm -p $f | grep "$1" && echo $f
done