4 ms·
Cool one-liner! Might want to switch the last part of the command, though, as all other pdf files in that folder get merged in as well (learned the hard way) :
by wolfhumble 13y ago
Cool one-liner!
Might want to switch the last part of the command, though, as all other pdf files in that folder get merged in as well (learned the hard way) :-)
Something like this would probably be safer:
curl -O http://i.stanford.edu/~ullman/focs/ch[01-14].pdf http://i.stanford.edu/~ullman/focs/ch[01-14].pdf && /System/Library/Automator/Combine\ PDF\ Pages.action/Contents/Resources/join.py -o ./merged.pdf ./ch[0-1][0-9].pdf
- jontas 13y agoSorry about that--I actually just created a new folder and moved into it before running the command, I probably should've mentioned that to prevent the issue you ran into.