-3

What is the correct way to curl to stdout, then untar (a zip file in that case) to a specific directory?

This failed:

curl URL | tar -x > /path

So I thought of this which also failed:

curl URL | tar -x > /path

1 Answers1

0

Duplicate of How to redirect output of wget as input to unzip? (wget and curl are interchangeable in this context). Please see this answer. Replicating it here:

wget URL -O path/temp.zip; unzip -d path path/temp.zip; rm path/temp.zip

Replace URL and path accordingly.

thiagowfx
  • 1,249