#!/bin/bash #pwd #ls | grep -v .sh > tmpSrc #cat tmpSrc #cat tmpSrc | grep -v .hservice > tmpSrc2 #cat tmpSrc2 ls | grep -v .sh > tmpSrc awk '/.so/ {print $0;}' tmpSrc > tmpSrc2 cat tmpSrc2 awk '{cmd="ldd -r " $0; print ; system(cmd);} ' tmpSrc2 > tmpLddResult awk '/[^)]$/' tmpLddResult > tmpNeedSo cat tmpNeedSo rm -f tmpSrc2 tmpSrc tmpLddResult