shithub: rc

ref: 14baea50cd1b7a8e8574cd8bd568739ae9ded924
dir: /bin/khinmidi/

View raw version
#!/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 ..
}