I have a collection of comic books that I store on my computer, mostly in .cbz
format (which is just a ZIP archive, but with a fancy name). Recently, I decided to make a collage of the covers of a specific comic series, for which I'd need the first file in the comic book archive.
Here's the breakdown of the problem:
- 75
.cbz
files in a single folder; - Each file has a name like
<series name> #<issue number>
, where issue numbers go from 1 to 75 (one problem: it's not like 01, 02, 03, etc, so there may be a confusion with sorting there);- Each file inside each archive is named like
<issue name> <3-digit issue number with preceding zeros>
- Each file inside each archive is named like
- Archives can be renamed to
.zip
if necessary, but I know 7Zip (and some other archivers, but not unrar) handles CBZ well enough;
What I need:
- The first file from each of the 75 archives. The files already have distinctive names, so there's no need to rename them at the output.
What I have:
- Ubuntu 16.04
- 7Zip
- Internet connection
How do I make this happen? What command will extract the first file from every archive in a folder to the same folder?