I have a line which I need to copy to a text file 250 times incrementing a number within the line. The line is this:
https://xxxxx-1.b.xxxxx.com/xxx/djset/xxxxx-0001.mp4
I need the number 0001 to be incremented by 1 in each consecutive line so that I would get a file with lines like this:
https://xxxxx-1.b.xxxxx.com/xxx/djset/xxxxx-0001.mp4 https://xxxxx-1.b.xxxxx.com/xxx/djset/xxxxx-0002.mp4 https://xxxxx-1.b.xxxxx.com/xxx/djset/xxxxx-0003.mp4 https://xxxxx-1.b.xxxxx.com/xxx/djset/xxxxx-0004.mp4
I can add a line to a file with echo command:
echo "xxxxx-1.b.xxxxx.com/xxx/djset/xxxxx-0001.mp4" >> file.txt
But I need a command which will add 250 of these lines and increment the number in them.
Thank you.