#!/bin/sh
for file in [0-9]*
do
  new=`echo "$file" | sed s/^/${1:-tmp}/`
  mv "$file" "$new"
done
