Originally Posted by ncube22
Dude. Chill out. This ain't a homework, so people have to list out their achievements to post a qn and look for a solution/help. Wow.
Didn't know that.. If you can help do so or else please move on with you life.
No need to be so harsh. As previously pointed out - if you show some effort and tell us at which point you're stuck or what exactly puzzles you, you will receive answers more suitable to your needs. Being it homework or not.
Regarding your question, you can start from something like:
for dir in */
destination=/path/to/destination/$(date -r $dir +%Y)
mkdir -p $destination && cp -a $dir $destination
This will create yearly directories under /path/to/destination based on the timestamp of the directories and copy them accordingly. Not sure if it's really what you're looking for. Hope it helps, anyway.