#!/bin/sh # pd -- download podcast episode(s) eval curl -ZL "$(sed -n 's/^Link: \|File: //p' | sed 's/ / /g; s/\\/\\\\/g; '"s/'/'\"'\"'/g" | paste - - | while IFS=' ' read link file; do file=`printf '%s\n' "$file" | sed "s/\"/'\"'\"'/g"` printf "-o '%s' '%s' " "$file" "$link" done)"