Sign up for a GitHub account Sign in All Gists colby / rdio.sh Created January 21, 2015 Code Revisions 1 /.sunken-menu-group /.sunken-menu-contents Embed HTTPS SSH You can clone with HTTPS or SSH . Download Gist /.only-with-full-nav A bash script to find the first HD video that matches the current Rdio song playing. View rdio.sh rdio.sh Raw File suppressed. Click to show. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 #!/usr/bin/env bash if ! pgrep -q Rdio then echo " Error: Rdio is not running " exit 1 fi function check { which " $1 " || echo " Missing dep: $1 " ; exit 1 } # check deps CUT= $( check cut ) SED= $( check sed ) GREP= $( check grep ) CURL= $( check curl ) ...