nsbin/mmv
Nico Schottelius d3c6e29902 Initial commit
2006-07-20 09:54:37 +02:00

11 lines
251 B
Bash
Executable file

#!/bin/bash
#
# multi move
# Nico Schottelius <nico-linux@schottelius.(org|net)>
# Last Changed : 8. Juni 2000
# Usage: mmv oldext newext
#
if [ $# -ne 2 ]; then echo "Usage: $0 old_ext new_ext";exit 1;fi
for i in *.$1;do mv "$i" "${i%.*}.$2";done