I have a directory with a few hundred PDFs in it.
All of the PDFs filenames begin with a 5 digit number (and then have a bunch of other stuff at the end).
What I need to do is merge any PDFs together that start with the same 5 digit number.
Thoughts on how to do this via a shell script? Or other options? I'm using pdftk
on Ubuntu.
Try this:
If output is okay, remove
echo
.