Created
March 26, 2016 22:56
-
-
Save StevenMaude/bf60d4de18f7e0620adc to your computer and use it in GitHub Desktop.
Get episode PIDs from a file containing BBC iPlayer URLs, one per line
This file contains 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
#!/bin/sh | |
# Usage: ./url-to-pid.sh <URL file> | |
cat $1 | grep -oP '(?<=episode/)\w+' | paste -d"," -s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment