1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-07 01:26:03 +02:00

Tar: Add extraction of file without folder structure (#3859)

Co-authored-by: Zlatan Vasović <zlatanvasovic@gmail.com>
This commit is contained in:
Simon Erkelens 2020-03-25 00:53:00 +13:00 committed by GitHub
parent 8367cbac3c
commit f6022ded6c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,3 +35,7 @@
- Extract files matching a pattern: - Extract files matching a pattern:
`tar xf {{source.tar}} --wildcards {{"*.html"}}` `tar xf {{source.tar}} --wildcards {{"*.html"}}`
- Extract a specific file without preserving the folder structure:
`tar xf {{source.tar}} {{source.tar/path/to/extract}} --strip-components={{depth_to_strip}}`