1 Long: remote-name 2 Short: O 3 Help: Write output to a file named as the remote file 4 Category: important output 5 --- 6 Write output to a local file named like the remote file we get. (Only the file 7 part of the remote file is used, the path is cut off.) 8 9 The file will be saved in the current working directory. If you want the file 10 saved in a different directory, make sure you change the current working 11 directory before invoking curl with this option. 12 13 The remote file name to use for saving is extracted from the given URL, 14 nothing else, and if it already exists it will be overwritten. If you want the 15 server to be able to choose the file name refer to --remote-header-name which 16 can be used in addition to this option. If the server chooses a file name and 17 that name already exists it will not be overwritten. 18 19 There is no URL decoding done on the file name. If it has %20 or other URL 20 encoded parts of the name, they will end up as-is as file name. 21 22 You may use this option as many times as the number of URLs you have. 23