ref: c15ee6ec46cb3d85112715f9dffc424f2810562c
dir: /bin/khinmidi/
#!/bin/rc
flag e +
for(i in $*){
x=`{echo $i | sed -n 's/.*\/([^\/]+)$/\1/p'}
mkdir -p $x && cd $x
hget $i |\
sed -n '/\.mid/s/^.*<a href="(.*)".*/\1/p' |\
uniq |\
xargs dw
cd ..
}