curl command output to file code example Example: curl output to a file curl http://www.mysite.com -o myoutputfile.txt