Richard, I take it that is a "no, impossible"? :-)
Rest assured: if the order weren't essential, and if I there were an obvious workaround, I wouldn't have bothered asking. As far as I can tell, there is no logic in the source's sort-order. It's the way it is, and certainly not the result of some sorting algorithm. (if only it were!) And it's that very way I copied the URLs into my input file. I don't know sed, but the alternative you suggest would be to loop through the individual URLs, and prefixing every output file. I had considered that as well (it can be done with a basic batch file), but wanted to try first if the single Wget call via an input file is possible. As this sounds much more efficient, and supposedly is amso quicker. Thx for your suggestions anyway. M. Van: "Richard Thomas" <[email protected]> Aan: "Michel Kempeneers" <[email protected]> Verzonden: Donderdag 12 december 2019 18:15:04 Onderwerp: Re: Wget: Adding a prefix to downloaded files? I'd look at why it's important you maintain the sort-order. Options would be to not require that. Or you could pre-sort the input folder so the output folder can be sorted with the same algorithm. Another option would be to generate the wget commands with your prefixes using something like sed.
