-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
According to Todd Andrews on 12/6/2007 11:13 PM:
Hello,
> 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 -
Thu 12-06-07 10:13 pm
Hello,
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
c
Andreas Schwab wrote:
> Eric Blake <[EMAIL PROTECTED]> writes:
> > Use -T (a GNU extension, not available in all ln implementations)
> > to guarantee the first form.
>
> ln -sn is more widely available.
If portability is a concern then the only option is remove the target
first. SysV based syste
Eric Blake <[EMAIL PROTECTED]> writes:
> In your case, the first attempt was of the 1st form, while the second
> attempt is of the 3rd form. Use -T (a GNU extension, not available in all
> ln implementations) to guarantee the first form.
ln -sn is more widely available.
Andreas.
--
Andreas Sc
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