I have a file generated by discord with about 8000 lines of curl commands and most of them are similar to one another. The deal is I can't edit every line and add a different output statement to each of them. is there any way of making curl automatically assign a different name to the file so that it doesn't overwrite the previous one?
curl 'https://cdn.discordapp.com/emojis/585807750991183872.png?v=1' \
-H 'sec-fetch-mode: no-cors' -H 'accept-encoding: gzip, deflate, br' \
-H 'accept-language: en-US' \
-H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) discord/0.0.90 Chrome/76.0.3809.94 Electron/6.0.0 Safari/537.36' \
-H 'accept: image/webp,image/apng,image/*,*/*;q=0.8' \
-H 'referer: https://canary.discordapp.com/channels/584291323893383169/607165146476969984' \
-H 'authority: cdn.discordapp.com' \
-H 'cookie: __cfduid=d36533327b001d6036b90a8c278c91d491562662533' \
-H 'sec-fetch-site: same-site' \
--compressed \
--output emoji.png ;
The --output statement is added by me since I can use the sublime split into lines function to edit the end of each lines separately. all of the endings did not contain --output and stopped at --compressed (tho I don't know if it's necesary)
TL;DR is there any way of making curl download each file with a different name? like file1 then file 2 and so on?