Using cut and sed
Here’s oneliner to remove the first 9 characters from a filename and convert all the spaces to ‘_’:
for i in *.mp3;do n=`echo $i | cut -b 9- | sed ’s/\ /_/’`;echo $i : $n;done
Here’s oneliner to remove the first 9 characters from a filename and convert all the spaces to ‘_’:
for i in *.mp3;do n=`echo $i | cut -b 9- | sed ’s/\ /_/’`;echo $i : $n;done