All pastes #518876 Raw Edit

Stuff

public shellscript v1 · immutable
#518876 ·published 2007-05-29 13:32 UTC
rendered paste body
#!/bin/bash# Checks all shared libariries on the system, if they link to# a given library.## $1 = Library, which will be tested for#for directory in /usr/lib /usr/local/libdo        for library in ${directory}/*.so*        do                if [ -f "${library}" ] && [ ! -h "${library}" ]; then                        ldd ${library} | grep ${1} > /dev/null                        if [ ${?} -eq 0 ]; then                                echo "${library} links against ${1}";                        fi                fi        donedone