Created
May 22, 2010 04:08
Revisions
-
lionelyoung created this gist
May 22, 2010 .There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ #!/bin/bash # Print out the html locations of all the files in public_html # Quick and dirty script just to get some HTML links to the mp3s in the public_html folder MYDIR=/home/lionel/public_html DYNDNS=mydyndnsusername cd $MYDIR || exit 1 ls -t *.mp3 | sed -r 's|(.*)|<a href="\1">\1<\/a><br>|g' > music.html echo "http://$DYNDNS.ath.cx/~lionel/music.html"