Article 5HHDD find - rename syntax problem

find - rename syntax problem

by
mackowiakp
from LinuxQuestions.org on (#5HHDD)
bash shell, debian
I want to find recursively from current dir, all files with names *.264.mp4" and rename it to *.mp4.
I use such syntax:

Code:find . -type f -name '*.264.mp4' -exec /usr/bin/rename -n 264.mp4 mp4 {} \;But it returns me en errors:

Code: (Missing operator before mp4?)
syntax error at (user-supplied code) line 3, near "264.mp4"What an error syntax I do? Any idea?latest?d=yIl2AUoC8zA latest?i=aW2fac9J6v8:rNSsEHD-6Ys:F7zBnMy latest?i=aW2fac9J6v8:rNSsEHD-6Ys:V_sGLiP latest?d=qj6IDK7rITs latest?i=aW2fac9J6v8:rNSsEHD-6Ys:gIN9vFwaW2fac9J6v8
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments