1、需求:文档格式转换批量脚本实现。

技术点1:文档分散在同一路径下。
技术点2:显示转换进度。
技术点3:每个转换输出到文档同名的指定文件夹下。
前提:单个格式转换已经验证ok。

2、脚本实现

[root@0ec6 testxx]# cat bulk_converts.sh#!/bin/shCONTENT_FILE=./rst.txticnt=0itotalCnt=`cat ./rst.txt | wc -l`cat $CONTENT_FILE | while read linedo echo "current pdf name is :"$line filename=`echo ${line%.*}` echo "pdf total cnt is: " $itotalCnt "current proessed c


收藏 打印