Quote:
Originally Posted by Fixit7
find -type f -name '*.MP4' | rename 's/MVI/Jakob_Football/'
|
Video and music can often have difficult names with spaces, quotes, apostrophes, and other weird characters. So if you are using "find" to limit yourself to regular files, you can use -print0 to use a null for a separator and then send it to "xargs" with the -0 or --null option:
Code:
find -type f -name '*.MP4' -print0 | xargs --null rename 's/MVI/Jakob_Football/'
It might be enough to just use rename, though:
Code:
rename -n 's/MVI/Jakob_Football/' *.MP4
and take away the -n when you see it is working the way you want.