[root@0ec6 testxx]# cat bulk_converts.sh#!/bin/sh
CONTENT_FILE=./rst.txt
icnt=0
itotalCnt=`cat ./rst.txt | wc -l`
cat $CONTENT_FILE | whileread line
doecho"current pdf name is :"$line
filename=`echo${line%.*}`
echo"pdf total cnt is: "$itotalCnt"current proessed cnt is: "$icntecho"current process file is : "$filenamecd ./KinitBary
pdftrans2html --embed-image 0 --dest-dir ./output_$filename$line$filename.html
icnt=$[$icnt+1];
echo icnt=$icnt;
cd ..
done;