I would like to copy files that are under the same name but in different folders into destdir. The issue is about not overwriting them in destdir.
Basically this could be enough, although I have no clue how to rename each of the file. As for now they all being overwritten:
$ cp /src/folder/*/file ~/dest/*
Best Answer
Here's one method:
that will copy
/src/folder/foobar/file
to~/dest/foobar_file
which should be unique