save curl output to file bash code example
Example 1: curl output to a file
curl http://www.mysite.com -o myoutputfile.txt
Example 2: curl save file
curl -o target/path/filename URL
curl http://www.mysite.com -o myoutputfile.txt
curl -o target/path/filename URL