I'd like to suggest a new feature be added to cp called --flatten that
would remove all paths from the source files/directories and copy the
file to the destination directory.
For example:
source:
data/AR/ARCUST
data/AR/AROPEN
data/AP/APVEND
data/AP/APOPEN
cp -pr --flatten data -t alldata
(--flatten could even imply -r)
destin:
alldata/ARCUST
alldata/AROPEN
alldata/APVEND
alldata/APOPEN
Thanks for listening!
Regards,
Todd Andrews