Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- the command to list the contents of a ZIM file is zimdump. Specifically, you can use the following options with zimdump:
- zimdump -l or zimdump --list: This option lists the directory entries in the ZIM file, including their paths, titles, and revision numbers.
- zimdump -F <zim_file> count-articles: This option lists the number of articles (directory entries) in the specified ZIM file.
- For example:
- zimdump -l wikivoyage_en_all_2015-09.zim
- This command would list the directory entries in the wikivoyage_en_all_2015-09.zim file, including their paths, titles, and revision numbers.
- Note that zimdump is part of the ZIM tools package, which can be obtained from the openZIM project. You may need to compile the ZIM tools from source or use a pre-compiled binary depending on your system and environment.
- Additionally, if you want to extract specific information from the ZIM file, you can use other options with zimdump, such as:
- -t or --title: Lists the titles of the directory entries.
- -p or --path: Lists the paths of the directory entries.
- -r or --revision: Lists the revision numbers of the directory entries.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement