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
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
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.