Categories
Unix Notes

What is wrong with this find command

What is wrong with this find command – it is subtle…

find . -type f ! -name "*.mp3" -exec mv "{}" "{}.mp3" ; 

Think about what files might be affected