I am pulling files using curl in the mac OS X terminal and want to give them different names. Is there a way to specify a name, such as a “save as” function when using curl?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Either use the
-ooption or its alias--output, or redirect shell output to the file of choice by using>.If you want to preserve the original file name from the remote server, use the
-Ooption or its alias--remote-name.Stores the output from the remote location in the current directory as file.html.