批量编译shell

类别:软件工程 点击:0 评论:0 推荐:

#makeall

cd /u3/cpictest/src
for subdir in `find . -type d -print`
do
{
        cd /u3/cpictest/src/$subdir
        make -u
        rm -rf *.o
}
done

 

#findall

cd /u3/cpictest/src
for subdir in `find . -type d -print`
do
{
        cd /u3/cpictest/src/$subdir
        grep $1 *
}
done

本文地址:http://com.8s8s.com/it/it33768.htm