Created
February 11, 2022 11:57
-
-
Save leonrinkel/bdb89ce6bab5834cd3a3ee491466ffd6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$from = 1 | |
$to = 540 | |
$url = "https://someurl/segment{}.ts" | |
$out = "segment{}.ts" | |
for ($i = $from; $i -le $to; $i++) | |
{ | |
Invoke-WebRequest $url.Replace("{}", $i) -OutFile $out.Replace("{}", $i) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment