Tar: Add extraction of file without folder structure (#3859)
Co-authored-by: Zlatan Vasović <zlatanvasovic@gmail.com>
This commit is contained in:
@@ -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}}`
|
||||||
|
Reference in New Issue
Block a user