caj文档批量转换为pdf-shell脚本多线程

摘要

最近看的论文有些多,但知网上的 caj 文档又卡又难做笔记,遂写了一个 caj 文档批量转换为 pdf 的 shell 脚本。

caj2pdf

安装 caj2pdf 命令行工具

github 源码: https://github.com/caj2pdf/caj2pdf

aur 用户

1
yay -S caj2pdf-git

code

当前目录下所有 caj 文件批量转换为pdf,并删除原 caj 文件

1
2
3
4
5
#!/bin/bash
for file in ./*.caj; do
caj2pdf convert "$file" -o "${file%.*}.pdf" && rm "$file" &
done
wait
- ETX   Thank you for reading -
  • Copyright: All posts on this blog except otherwise stated, All adopt CC BY-NC-ND 4.0 license agreement. Please indicate the source of reprint!