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