Use the -o option or redirect shell output to the selection file with > .
curl -o /path/to/local/file http://url.com curl http://url.com > /path/to/local/file
If you want to keep the original file name from a remote server, use the -o option.
curl -O http:
Saves output from a remote location in the current directory as file.html.
simonnordberg Mar 16 2018-12-12T00: 00Z
source share