#!/bin/bash
#
# written 20110528 by sputnick - gilles <dot> quenot <at> gmail <dot> com
# 
# This script is intended to play ram files with vlc instead of using proprietary 
# software "realplay" that run only on 32bit systems.
# You can replace vlc by any other player.
# 
# Now, we are able to play www.amazon.* samples =)
# Configure your browser to open ram(ra) files 
# with this script.
# 
# requirement : vlc and curl 
for arg; do
	vlc $(curl -s $(<"$arg") | grep -oP "http://.*\.rm")
done
