Re: New feature request for cp to flatten directory

2007-12-07 Thread Eric Blake
-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 -

New feature request for cp to flatten directory

2007-12-07 Thread Todd Andrews
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

Re: Symbolic link problem

2007-12-07 Thread Bob Proulx
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

Re: Symbolic link problem

2007-12-07 Thread Andreas Schwab
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

Re: New feature request for cp to flatten directory

2007-12-07 Thread Bob Proulx
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