This will probably do what you want:
lynx -accept_all_cookies -dumpwget -listonly qO-nonumbers http://website.com/site/ | \ grepsed 'myStream-n -e "/playlist\.m3u'^ *file: */ { s/^ *file: *'//; s/', *$//p}" > output.txt You'll need to install the text-mode browser lynx first if it isn't already installed.