#!/bin/bash
#非l 开头
#ls -l | grep -v .sh | awk '/^[^l]/ {print $0;}' > tmpSrc
#以 - 开头
ls -l | grep \\.so | awk '/^[-]/ {print $9;}' > tmpSrc
#cat tmpSrc
echo "find the same real soname........."
#awk ' { printf $0"\n" ;cmd="readelf -d " $0; cmd2 =cmd " | grep SONAME "; system(cmd2);}' tm^Crc > tmpSrc2
awk ' { cmd="readelf -d " $0; cmd2 =cmd " | grep SONAME "; system(cmd2);}' tmpSrc > tmpSrc2
#大于两次的
cat tmpSrc2 | uniq -c | grep -v "1 "> tmpSrc3
cat tmpSrc3