Copy a large directory of files using ls and xargs

13/05/2010
ls . | xargs -i -t cp ./{} /path/to/new/directory

See example 12-6 at http://www.homepage.montana.edu/~unixuser/051905/abs-guide/moreadv.html

No comments yet.

Write a comment: