[svlug]how to copy a bunch of "." files?

Drew Bloechl drew at sith-lord.org
Wed Apr 26 13:47:17 PDT 2000

On Wed, Apr 26, 2000 at 01:25:31PM -0700, Daevid Vincent wrote:
> given a directory with . files in it, how do I copy them all to another
> directory?

find . -type f -maxdepth 1 | xargs -i mv '{}' otherdir

Whee!  Lots of other ways to do this, but that's what comes to mind 
first for me.  

Drew Bloechl
drew at cesspool.net
DSA key ID: 33855516

More information about the svlug mailing list