shell 脚本 文件夹扫描获取文件
时间:2016-03-22 13:47:57
收藏:0
阅读:470
for typefile in $filedir_f_2(文件夹路径)
do
typefn=$(basename $typefile)// 获取文件名
typeprefix=${typefn:0:10}// 截取字符串 根据实际情况 0:10 进行修改
if [ "$typeprefix" = ‘filename‘ ]
then
fi
done
原文:http://www.cnblogs.com/ZhenShi/p/5306087.html
评论(0)