mirror of https://github.com/CrimsonTome/tldr.git
Tar: Add extraction of file without folder structure (#3859)
Co-authored-by: Zlatan Vasović <zlatanvasovic@gmail.com>client-spec/clarity
parent
8367cbac3c
commit
f6022ded6c
|
@ -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}}`
|
||||
|
|
Loading…
Reference in New Issue