#!/bin/sh
eachd() {
for chkfile in $1/*
do
if [[ -f "$chkfile" ]]
then
result=`file $chkfile |awk '{print $3}'`
if [ "$result" == "ELF" ]
then
echo $chkfile #>> result.txt
fi
fi
if [[ -d $chkfile ]]
then
eachd $chkfile
fi
done
}
eachd "."
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) | Powered by Discuz! X3.2 |