bug-coreutils
[Top][All Lists]
Advanced

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

Re: New feature request for cp to flatten directory


From: Eric Blake
Subject: Re: New feature request for cp to flatten directory
Date: Fri, 07 Dec 2007 06:34:23 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666

-----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 --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 {}+

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHWUvf84KuGfSFAYARAltpAKCYIpzvQJYd72jZx8O813ZvSkXaRwCgj5vV
R1Se58DTfoUCFM7KrmpqdvE=
=S/QB
-----END PGP SIGNATURE-----




reply via email to

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