Eric Blake wrote: > Todd Andrews wrote: > > 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. > > > > cp -pr --flatten data -t alldata > > Thanks for the suggestion. However, it seems like this is already > possible with existing tools, so why add the bloat? > > find data -type f -exec cp -pr -t alldata {}+
A very minor correction for the mail archive and an update. There needs to be a space between the "{}" and the "+". Plus since every argument will be a file because of the "-type f" then no cp "-r" option is needed. find data -type f -exec cp -p -t alldata {} + [Eric knows this but looks to have been caught by the very early in the morning time of posting. :-) ] Bob _______________________________________________ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils