bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

New feature request for cp to flatten directory


From: Todd Andrews
Subject: New feature request for cp to flatten directory
Date: Thu, 06 Dec 2007 22:13 -0800 (PT)
User-agent: Thunderbird 2.0.0.9 (Macintosh/20071031)

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

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]