I want to rename all files which end on ".mp4" in such way that instead of white spaces to contain underscores. Example:
Original file -> test 1.mp4
Renamed file -> test_1.mp4
I was trying with:
find . -iname "*.mp4" -exec mv {} $(echo '{}' | tr " " "_") \;
But I got only:
mv: ‘./test 1.mp4’ and ‘./test 1.mp4’ are the same file
It seems that my pipe is not working.I would appreciate all ideas.