Article 6MT2J recursively copying files into single dir broken down by alphabet

recursively copying files into single dir broken down by alphabet

by
mattdawolf
from LinuxQuestions.org on (#6MT2J)
How would I get find src/ -type f -name "*.so" -exec cp {} dst/ \;
to do the following:

copy all files in source and relative dirs to destiantion without relative paths, while renaming any potential duplicates to avoid data loss.

destination dir should be broken down into dirs with first letter.

There are 340000 files I need to go through.

Many thanks!
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