mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-27 12:46:06 +00:00
Utilities: Add the 'files' argument to the unzip utility
This commit is contained in:
parent
eec34ae0e9
commit
083b58fd89
Notes:
sideshowbarker
2024-07-17 18:43:52 +09:00
Author: https://github.com/ben-abraham
Commit: 083b58fd89
Pull-request: https://github.com/SerenityOS/serenity/pull/12510
Reviewed-by: https://github.com/MaxWipfli
Reviewed-by: https://github.com/alimpfard
2 changed files with 34 additions and 2 deletions
|
@ -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
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue