diff --git a/bandcamp_format_utility.sh b/bandcamp_format_utility.sh index 6e5c132..d375d7d 100755 --- a/bandcamp_format_utility.sh +++ b/bandcamp_format_utility.sh @@ -31,7 +31,7 @@ for f in $files; "$f" # moves the files to a correct name into an artist/album/ folder - printf -v file_name '%02d - %s.mp3' "$track_number" "$track" + new_name=$(printf '%02d - %s.mp3' "$track_number" "$track") mkdir -p "$artist" mkdir -p "$artist/$album" mv "$f" "$artist/$album/$file_name"