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继续阅读与本文标签相同的文章
下一篇 :
阿里云服务器怎么样?怎么用?全方位评测附教程
-
阿里云服务器ECS的系统盘该如何选择?以及高效云盘、SSD云盘和普通云盘的区别
2026-05-24栏目: 教程
-
【ApiPost】中文版的API接口调试工具
2026-05-24栏目: 教程
-
突破Java面试(23 - 3) - Redis replication以及master持久化对主从架构的安全意义
2026-05-24栏目: 教程
-
微服务开源生态报告 No.3
2026-05-24栏目: 教程
-
干货 |《深入理解Elasticsearch》读书笔记
2026-05-24栏目: 教程
