Skip to content

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

摘要

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

caj2pdf

安装 caj2pdf 命令行工具

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

aur 用户

shell
yay -S caj2pdf-git

code

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

shell
#!/bin/bash
for file in ./*.caj; do
    caj2pdf convert "$file" -o "${file%.*}.pdf" && rm "$file" &
done
wait