Download file with CURL without repeating file name
Instead:
curl http://example.com/foo.txt -o foo.txt
Do:
curl -O http://example.com/foo.txt
Or if you want to support redirects and header-specified file names:
curl -JOL http://example.com/foo.txt
Written by Adam Stankiewicz
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#