Useful little script to replace all spaces in file names with underscores within a directory:
for file in *.mp3
do
newname=$(echo $file | tr ' ' _)
mv "$file" $newname
done
Useful little script to replace all spaces in file names with underscores within a directory:
for file in *.mp3
do
newname=$(echo $file | tr ' ' _)
mv "$file" $newname
done