Answer the question
In order to leave comments, you need to log in
How to process sets of files recursively?
We have a folder and file structure:
<GROUP>
|-<DOCTYPE>
|--<STUDENT>
|---<FILENAME>-1.jpg
|---<FILENAME>-2.jpg
|---<FILENAME>-N.jpg
|---<OTHERNAME>-1.jpg
|---<OTHERNAME>-N.jpg
find . -type f "FILENAME-*.jpg" -exec convert {} FILENAME.pdf \;
Answer the question
In order to leave comments, you need to log in
1. If I'm not mistaken, the set of files is converted into 1 pdf with the command
convert filename-*.jpg out.pdf
2. For the pagination to be correct, the files must be named with leading zeros, otherwise pages 1, 10, 2, 3, .. will be processed. It
remains to think about how to group files by names , , ...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question