1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 21:48:13 +00:00

Utilities: Add the 'files' argument to the unzip utility

This commit is contained in:
serenitydev 2022-02-14 03:15:26 -05:00 committed by Ali Mohammad Pur
parent eec34ae0e9
commit 083b58fd89
2 changed files with 34 additions and 2 deletions

View file

@ -5,7 +5,7 @@ unzip - extract files from a ZIP archive
## Synopsis
```**sh
$ unzip file.zip
$ unzip file.zip [files...]
```
## Description
@ -14,6 +14,8 @@ unzip will extract files from a zip archive to the current directory.
The program is compatible with the PKZIP file format specification.
The optional [files] argument can be used to only extract specific files within the archive (using wildcards) during the unzip process. A `_` can be used as a single-character wildcard, and `*` can be used as a variable-length wildcard.
## Examples
```sh
@ -23,3 +25,10 @@ Archive: archive.zip
extracting: file1.txt
extracting: file2.png
```
```sh
# Unzip select files from archive.zip, according to a filter
$ unzip archive.zip "*.tx_"
Archive: archive.unzip
extracting: file1.txt
```