Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 6e1b6e71ff
Fetching contributors…

Cannot retrieve contributors at this time

executable file 30 lines (24 sloc) 0.411 kb
#!/bin/sh
usage()
{
echo "usage: know what you're doing"
exit 1
}
gen_path()
{
str=$(</dev/urandom tr -dc A-Za-z0-9 | head -c 8)
tmpath=$1/$str
while [ -e $tmpath ]; do
str=$(</dev/urandom tr -dc A-Za-z0-9 | head -c 8)
tmpath=$1/$str
done
echo ${tmpath}.mp3
}
if [ "$1" = "" ]; then
usage
fi
if [ "$2" = "" ]; then
usage
fi
to=`gen_path $2`
mv "$1" $to
Jump to Line
Something went wrong with that request. Please try again.