#!/bin/bash
# 
# This starts democracy now going from a bash shell
# pflint Sat 14 Jun 2008 09:59:56 AM EDT
# Liscensed under GPL version 1 
#
# Example:
# mpg123 http://media.switchpod.com/users/democracynow/ftp/dn2008-0613-1.mp3
#                                                          ^    ^ ^
#                                                          |    | |
#  date +"%Y"                                             Year  | |
#  date +"%m"                                               Month |
#  date +"%e"                                                   Day
# to construct this is a command line then use
# $(expr `date +%e` - 1) to set the day back.  
# this will Democracy Now for any day on a linux box.
#
mpg123 http://media.switchpod.com/users/democracynow/ftp/dn`date +"%Y"`-`date +"%m"`$(expr `date +%e` - 1)-1.mp3


