Reputation
Next privilege 125 Rep.
Vote down
Badges
4
Newest
 Excavator
Impact
0 people reached

Jul
18
comment Unzipping files that are flying in through a pipe
This seemed like it should be doable, but it looks like it's only possible to extract a zip and pipe the file to another command if the zip contains only a single file. I wanted to extract a specific file from a multi-file zip. Instead of piping, I switched to chaining multiple commands 'unzip file.zip /path/file && dostuff /path/file && rm -rf /path' While not answering the original question, and resulting in temporary files being created, it satisfied my need.