stevenvo
5/26/2015 - 10:16 PM

Convert images to PDF in order of filename, with text prefix and numerical suffix, such as Untitled-0.jpg, Untitled-1.jpg, etc.

Convert images to PDF in order of filename, with text prefix and numerical suffix, such as Untitled-0.jpg, Untitled-1.jpg, etc.

ls tap1/*.jpg | sort -t- -nk2,2 | tr '\n' ' ' | sed 's/$/\ tap1.pdf/' | xargs convert