Skip to content

Instantly share code, notes, and snippets.

@jsjohnst
Created September 1, 2010 19:01
Show Gist options
  • Save jsjohnst/561168 to your computer and use it in GitHub Desktop.
Save jsjohnst/561168 to your computer and use it in GitHub Desktop.
#!/bin/bash
# If you don't have wget on your Mac, brew install wget
# If you refuse to do that for some odd reason, replace wget with curl -LO (thanks @zadr)
for i in {0..785}; do wget http://qthttp.apple.com.edgesuite.net/1009qpeijrfn/1240/1240_090110_094007_$i.ts; done;
for i in `ls *.ts`; do mv $i `echo $i | awk -F '_' '{printf "%d_%d_%d.%06s", $1, $2, $3, $4}'`; done;
# Then run NullPacketStripper to combine the .ts files together
# It's available from here: http://www.hometheatersoftware.com/stuff/NullPacketStripper/NullPacketStripper_v013beta.zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment