对 pdfbeads 中的输入文件进行排序

对 pdfbeads 中的输入文件进行排序

我正在尝试将数百个 .tif 图像与pdfbeads.我无法让程序以正确的数字顺序使用图像。例如,在这个过程中我看到:

Prepared data for processing image-098.tif
Prepared data for processing image-099.tif
Prepared data for processing image-100.tif
Prepared data for processing image-1000.tif
Prepared data for processing image-1001.tif
Prepared data for processing image-1002.tif
Prepared data for processing image-1003.tif
Prepared data for processing image-1004.tif
Prepared data for processing image-1005.tif
Prepared data for processing image-1006.tif
Prepared data for processing image-1007.tif
Prepared data for processing image-1008.tif
Prepared data for processing image-1009.tif
Prepared data for processing image-101.tif
Prepared data for processing image-1010.tif
Prepared data for processing image-1011.tif
Prepared data for processing image-1012.tif

通过以下命令我得到了正确的命令

ls -v

所以我尝试了

pdfbeads $(ls -v) > file.pdf

没有结果。

答案1

如果计数达到 1000 张图像,那么我们必须使用所有数字中的 4 位数字来正确排序。这可以通过重命名命令来完成:

rename image- image-0 *-[0-9][0-9][0-9].tif

完毕!

image-0229.tif     image-0487.tif  image-0745.tif  image-1003.tif
image-0230.tif     image-0488.tif  image-0746.tif  image-1004.tif
image-0231.tif     image-0489.tif  image-0747.tif  image-1005.tif
image-0232.tif     image-0490.tif  image-0748.tif  image-1006.tif
image-0233.tif     image-0491.tif  image-0749.tif  image-1007.tif
image-0234.tif     image-0492.tif  image-0750.tif  image-1008.tif
image-0235.tif     image-0493.tif  image-0751.tif  image-1009.tif
image-0236.tif     image-0494.tif  image-0752.tif  image-1010.tif
image-0237.tif     image-0495.tif  image-0753.tif  image-1011.tif
image-0238.tif     image-0496.tif  image-0754.tif  image-1012.tif
image-0239.tif     image-0497.tif  image-0755.tif  image-1013.tif

相关内容