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

Co-authored-by: Zlatan Vasović <zlatanvasovic@gmail.com>
client-spec/clarity
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
1 changed files with 4 additions and 0 deletions

View File

@ -35,3 +35,7 @@
- Extract files matching a pattern:
`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}}`