URL return list of files separated by comma example
URL : http://sometimesdownload.com/list_of_files
To get list of files
curl -0 http://sometimesdownload.com/list_of_files
Output of above curl command/List returned :
[" file1.csv","file2.csv","file3.csv"...."filen.csv"]
How to download all files in a single run to a specified path in /tmp/downloaded_files directory in linux and delete the file after downloading. File name of files should be same as original files.
CURL GET to get the files, Download the files and then delete the files after downloading using CURL DELETE.
File can be downloaded like this :
http://sometimesdownload.com/list_of_files/file_name
Example:
curl -o http://sometimesdownload.com/list_of_files/file1.csv
curl -o http://sometimesdownload.com/list_of_files/file2.csv
curl -o http://sometimesdownload.com/list_of_files/file3.csv
Thanks