Download the content of an URL to a file
curl http://example.com/text.txt -o filename.txt

Download the content of a URL and safe it by the given name
curl -O http://example.com/text.txt