查找函数实现所在的库的shell脚本

来源:互联网 发布:淘宝客服一小时多少钱 编辑:程序博客网 时间:2024/06/09 11:59

#!/bin/sh

for file in ./*.a              
do
if test -f $file
then
    echo $file
    echo 是文件
 nm -a $file| grep $1
fi
if test -d $file
then
    echo $file
    echo 是目录
fi
done
 

原创粉丝点击