#!/bin/sh IFS=" " PAD=" "; cat head.html echo "$PAD"; for dir in [A-Z]*; do files=$(ls -c1 $dir/*.mp3 2> /dev/null); if [ "$files" != "" ]; then url=${dir// /%20} url=${url//,/%2C} url=${url//&/%26} echo "$PAD "; echo "$PAD "; echo "$PAD "; for file in $files; do name=${file%.mp3} name=${name##*/} du=`du $file` size="${du%%[^0-9]*} Kb" file=${file// /%20} file=${file//,/%2C} file=${file//&/%26} file=${file//\"/%22} echo "$PAD "; echo "$PAD "; echo "$PAD "; echo "$PAD "; done; echo "$PAD "; fi done; echo "$PAD
$dir
$name$size

" cat tail.html