Tuesday, November 14, 2006

Rename files

#!/bin/bash -
# mp3a to mp3

FILES=`ls *.mp3a`

for i in $FILES; do
OUT=`echo $i | sed -e 's/.mp3a//'`
mv $i $OUT.mp3
done


renames files from mp3 to mp3a

0 Comments:

Post a Comment

<< Home