4 echo $0: requires at least one argument as the file prefix to remove or replace.
5 echo If there is a second argument, it will be used as the replacement. Otherwise,
6 echo the replacement string will simply be removed from all matching files in the
7 echo current directory.
14 mv $i $(echo $i | sed -e "s/$prefix*\(.*\)/$new_prefix\1/" )