Compress a folder of PDF files into separate zip archives
Posted
by
Panrubius
on Super User
See other posts from Super User
or by Panrubius
Published on 2012-04-11T09:13:11Z
Indexed on
2012/04/11
11:34 UTC
Read the original article
Hit count: 323
I wanted to take a folder full of PDF files and create a number of separate zip files, after following the advice on this question everything worked *almost*perfectly. Here's what happened:
When I issued this command in Terminal:
zip -s 5m -r ~/Desktop/invoices ~/Desktop/Invoices/
Everything worked really well, in that I got 11 ZIP files of approximately 5 MB each; placed in the folder specified.
However, the files they outputted were named as follows:
- invoices.z01
- invoices.z02
- invoices.z03
- invoices.z04
- invoices.z05
- invoices.z06
- invoices.z07
- invoices.z08
- invoices.z09
- invoices.z10
- invoices.zip
So as you can see only invoices.zip has been named correctly. I could go through and rename them one by one, but seriously, if we start doing that then what in the name of Evolution are computers for?!
Now, I am also aware that I'm relatively new to the Terminal; so I could be making a very silly mistake somewhere. If that's the case, please be patient :-)
Any help would be greatly appreciated.
One last note: I'm quadriplegic so I would like to avoid GUI applications as much as possible, I use voice recognition software you see this working in the Terminal is much much easier.
© Super User or respective owner