Article 5RKVQ How can I rename files in recursive folders and the move the files all to one directory?

How can I rename files in recursive folders and the move the files all to one directory?

by
sofasurfer
from LinuxQuestions.org on (#5RKVQ)
I have 100 directories which are full of photos. There are also sub directories full of photos. I want to rename all photos with a number (example 1-10000) prefixed onto the current filename. Then I want all photos moved into one directory.
I tried krename and after I figured out its idiosyncrasies I found that it does not dig down into the recursive directories, unless I just haven't used it properly.
I can add directories into krename and it will process the files in it but if there is a sub directory in the directory it will not process the file in it.
Is there a solution here or a better software?
I managed to rename files in a directory with a command line script but when it comes to multiple directories and recursive directories its just too complicated for me at this time.latest?d=yIl2AUoC8zA latest?i=WdnI1HAmzVc:jbW0RKCgVYU:F7zBnMy latest?i=WdnI1HAmzVc:jbW0RKCgVYU:V_sGLiP latest?d=qj6IDK7rITs latest?i=WdnI1HAmzVc:jbW0RKCgVYU:gIN9vFwWdnI1HAmzVc
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