fork(2) download
  1. #!/bin/bash
  2. s="INPUTS+=('http://d...content-available-to-author-only...n.ext/XXX/ZZZ/12345')"
  3. sed "s/')$/.ts&/g" <<< "$s"
  4. sed "s/\([0-9]\{1,\}\)\(')\)$/\1.ts\2/g" <<< "$s"
Success #stdin #stdout 0s 4252KB
stdin
Standard input is empty
stdout
INPUTS+=('http://d...content-available-to-author-only...n.ext/XXX/ZZZ/12345.ts')
INPUTS+=('http://d...content-available-to-author-only...n.ext/XXX/ZZZ/12345.ts')