If you look at the output of the different find
commands you'll see that find . -type f
will return lines like this: ./passwd
.
Now you can't use that as the target, as renaming ./passwd
to zzz - ./passwd
would try to move it to a zzz - .
folder as passwd
.
By the way, you can surround the whole target name with quotes, to make it look better (also you should not escape the first z anyway):
mv "$file" "zzz - $file - copied $DATE.wav"
Also you probably want to get rid of the .wav part in the middle of the file:
mv "$file" "zzz - ${file%.wav} - copied $DATE.wav"
The ${var%string}
returns the value of $var with string removed from the end of it if present. You can find more about this looking for bash string manipulation.