#!/bin/bash echo "new name" read new i=1 for file in ./*.mp3 #do echo $file; done do #echo $file mv $file $new$i.mp3 i=$((i+1)) done